MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / IsPayToWitnessScriptHash

Method IsPayToWitnessScriptHash

src/script/script.cpp:233–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233bool CScript::IsPayToWitnessScriptHash() const
234{
235 // Extra-fast test for pay-to-witness-script-hash CScripts:
236 return (this->size() == 34 &&
237 (*this)[0] == OP_0 &&
238 (*this)[1] == 0x20);
239}
240
241bool CScript::IsPayToTaproot() const
242{

Callers 8

MutateTxSignFunction · 0.80
MigrateToDescriptorMethod · 0.80
listunspentFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
FUZZ_TARGETFunction · 0.80
key.cppFile · 0.80
ParsePrevoutsFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by 3

BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
FUZZ_TARGETFunction · 0.64