Show coin a lock tx blocks confirmed.

This commit is contained in:
tecnovert
2020-12-10 16:37:26 +02:00
parent 645571e47c
commit 2979b3e244
5 changed files with 45 additions and 26 deletions

View File

@@ -41,3 +41,7 @@ def buildContractScript(lock_val, secret_hash, pkh_redeem, pkh_refund, op_lock=O
OpCodes.OP_EQUALVERIFY,
OpCodes.OP_CHECKSIG])
return script
def extractScriptSecretHash(script):
return script[7:39]