MCPcopy Create free account
hub / github.com/LUX-Core/lux / IsPayToPubkeyHash

Method IsPayToPubkeyHash

src/script/script.cpp:318–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316}
317
318bool CScript::IsPayToPubkeyHash() const
319{
320 // Extra-fast test for pay-to-pubkeyhash CScripts:
321 return (this->size() == 25 &&
322 (*this)[0] == OP_DUP &&
323 (*this)[1] == OP_HASH160 &&
324 (*this)[2] == 0x14 &&
325 (*this)[23] == OP_EQUALVERIFY &&
326 (*this)[24] == OP_CHECKSIG);
327}
328/////////////////////////////////////////////////////////
329
330bool CScript::IsPayToWitnessScriptHash() const

Callers 2

addSpentIndexMethod · 0.80
CheckSenderScriptFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected