Deduplicate getP2SHScriptForHash

This commit is contained in:
tecnovert
2025-05-11 11:59:19 +02:00
parent 38302d2d79
commit 80915d9865
4 changed files with 9 additions and 19 deletions

View File

@@ -1393,6 +1393,9 @@ class BTCInterface(Secp256k1Interface):
def getScriptDest(self, script):
return CScript([OP_0, sha256(script)])
def getP2WSHScriptDest(self, script):
return CScript([OP_0, sha256(script)])
def getScriptScriptSig(self, script: bytes) -> bytes:
return bytes()