Skip to content

Instantly share code, notes, and snippets.

@prestwich
Last active May 6, 2018 00:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prestwich/047a7f85091c81de1b848a30dcf7cea6 to your computer and use it in GitHub Desktop.
Save prestwich/047a7f85091c81de1b848a30dcf7cea6 to your computer and use it in GitHub Desktop.
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