MCPcopy Create free account
hub / github.com/citp/BlockSci / IsPayToScriptHash

Method IsPayToScriptHash

src/internal/bitcoin_script.cpp:202–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200 }
201
202 bool CScript::IsPayToScriptHash() const
203 {
204 // Extra-fast test for pay-to-script-hash CScripts:
205 return (this->size() == 23 &&
206 (*this)[0] == OP_HASH160 &&
207 (*this)[1] == 0x14 &&
208 (*this)[22] == OP_EQUAL);
209 }
210
211 bool CScript::IsPayToWitnessScriptHash() const
212 {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected