MCPcopy Index your code
hub / github.com/petertodd/python-bitcoinlib / is_witness_v0_nested_keyhash

Method is_witness_v0_nested_keyhash

bitcoin/core/script.py:700–702  ·  view source on GitHub ↗

Returns true if this is a scriptSig for V0 P2WPKH embedded in P2SH.

(self)

Source from the content-addressed store, hash-verified

698 return len(self) == 22 and self[0:2] == b'\x00\x14'
699
700 def is_witness_v0_nested_keyhash(self):
701 """Returns true if this is a scriptSig for V0 P2WPKH embedded in P2SH. """
702 return len(self) == 23 and self[0:3] == b'\x16\x00\x14'
703
704 def is_witness_v0_scripthash(self):
705 """Returns true if this is a scriptpubkey for V0 P2WSH. """

Callers 1

from_scriptPubKeyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected