MCPcopy Create free account
hub / github.com/ElementsProject/elements / IsPayToWitnessPubkeyHash

Method IsPayToWitnessPubkeyHash

src/script/script.cpp:302–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300 (*this)[24] == OP_CHECKSIG);
301}
302bool CScript::IsPayToWitnessPubkeyHash() const
303{
304 return (this->size() == 22 &&
305 (*this)[0] == 0x00 &&
306 (*this)[1] == 0x14);
307}
308
309// END ELEMENTS
310//

Callers 1

ScriptHasValidPAKProofFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected