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

Method is_p2wpkh_script_pubkey

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

Source from the content-addressed store, hash-verified

265
266 # tag::source2[]
267 def is_p2wpkh_script_pubkey(self): # <2>
268 return len(self.cmds) == 2 and self.cmds[0] == 0x00 \
269 and type(self.cmds[1]) == bytes and len(self.cmds[1]) == 20
270 # end::source2[]
271
272 # tag::source5[]

Callers 1

verify_inputMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected