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

Method is_witness_v0_scripthash

bitcoin/core/script.py:704–706  ·  view source on GitHub ↗

Returns true if this is a scriptpubkey for V0 P2WSH.

(self)

Source from the content-addressed store, hash-verified

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. """
706 return len(self) == 34 and self[0:2] == b'\x00\x20'
707
708 def is_witness_v0_nested_scripthash(self):
709 """Returns true if this is a scriptSig for V0 P2WSH embedded in P2SH. """

Callers 1

from_scriptPubKeyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected