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

Function p2pkh_script

code-ch08/script.py:20–22  ·  view source on GitHub ↗

Takes a hash160 and returns the p2pkh ScriptPubKey

(h160)

Source from the content-addressed store, hash-verified

18
19
20def p2pkh_script(h160):
21 '''Takes a hash160 and returns the p2pkh ScriptPubKey'''
22 return Script([0x76, 0xa9, h160, 0x88, 0xac])
23
24
25def p2sh_script(h160):

Callers

nothing calls this directly

Calls 1

ScriptClass · 0.70

Tested by

no test coverage detected