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

Function p2wsh_script

code-ch13/script.py:42–44  ·  view source on GitHub ↗

Takes a hash160 and returns the p2wsh ScriptPubKey

(h256)

Source from the content-addressed store, hash-verified

40
41# tag::source4[]
42def p2wsh_script(h256):
43 '''Takes a hash160 and returns the p2wsh ScriptPubKey'''
44 return Script([0x00, h256]) # <1>
45# end::source4[]
46
47

Callers

nothing calls this directly

Calls 1

ScriptClass · 0.70

Tested by

no test coverage detected