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

Function p2sh_script

code-ch08/script.py:25–27  ·  view source on GitHub ↗

Takes a hash160 and returns the p2sh ScriptPubKey

(h160)

Source from the content-addressed store, hash-verified

23
24
25def p2sh_script(h160):
26 '''Takes a hash160 and returns the p2sh ScriptPubKey'''
27 return Script([0xa9, h160, 0x87])
28
29
30LOGGER = getLogger(__name__)

Callers

nothing calls this directly

Calls 1

ScriptClass · 0.70

Tested by

no test coverage detected