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

Method is_witness_v0_keyhash

bitcoin/core/script.py:696–698  ·  view source on GitHub ↗

Returns true if this is a scriptpubkey for V0 P2WPKH.

(self)

Source from the content-addressed store, hash-verified

694 return next(iter(self))
695
696 def is_witness_v0_keyhash(self):
697 """Returns true if this is a scriptpubkey for V0 P2WPKH. """
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. """

Callers 2

from_scriptPubKeyMethod · 0.95
from_scriptPubKeyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected