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

Function p2wpkh_script

code-ch13/script.py:35–37  ·  view source on GitHub ↗

Takes a hash160 and returns the p2wpkh ScriptPubKey

(h160)

Source from the content-addressed store, hash-verified

33
34# tag::source1[]
35def p2wpkh_script(h160):
36 '''Takes a hash160 and returns the p2wpkh ScriptPubKey'''
37 return Script([0x00, h160]) # <1>
38# end::source1[]
39
40

Callers

nothing calls this directly

Calls 1

ScriptClass · 0.70

Tested by

no test coverage detected