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

Method is_p2wsh_script_pubkey

code-ch13/script.py:273–275  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

271
272 # tag::source5[]
273 def is_p2wsh_script_pubkey(self):
274 return len(self.cmds) == 2 and self.cmds[0] == 0x00 \
275 and type(self.cmds[1]) == bytes and len(self.cmds[1]) == 32
276 # end::source5[]
277
278 def address(self, testnet=False):

Callers 1

verify_inputMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected