MCPcopy Index your code
hub / github.com/jimmysong/programmingbitcoin / p2pkh_script

Function p2pkh_script

code-ch13/script.py:24–26  ·  view source on GitHub ↗

Takes a hash160 and returns the p2pkh ScriptPubKey

(h160)

Source from the content-addressed store, hash-verified

22
23
24def p2pkh_script(h160):
25 '''Takes a hash160 and returns the p2pkh ScriptPubKey'''
26 return Script([0x76, 0xa9, h160, 0x88, 0xac])
27
28
29def p2sh_script(h160):

Callers 3

sig_hash_bip143Method · 0.90
evaluateMethod · 0.70
test_addressMethod · 0.70

Calls 1

ScriptClass · 0.70

Tested by 1

test_addressMethod · 0.56