Last active
May 6, 2018 00:09
-
-
Save prestwich/047a7f85091c81de1b848a30dcf7cea6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from riemann.script import serialization | |
p2pkh_pk_script = 'OP_DUP OP_HASH160 {} OP_EQUALVERIFY OP_CHECKSIG' | |
script = p2pkh_script.format(pubkey_hash_hex) | |
stack_script = '{} {}'.format(sig_hex, pubkey_hex) | |
stack_script = serialization.serialize(stack_script) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment