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

Function MatchPayToPubkeyHash

src/script/standard.cpp:93–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93static bool MatchPayToPubkeyHash(const CScript& script, valtype& pubkeyhash)
94{
95 if (script.size() == 25 && script[0] == OP_DUP && script[1] == OP_HASH160 && script[2] == 20 && script[23] == OP_EQUALVERIFY && script[24] == OP_CHECKSIG) {
96 pubkeyhash = valtype(script.begin () + 3, script.begin() + 23);
97 return true;
98 }
99 return false;
100}
101
102/** Test for "small positive integer" script opcodes - OP_1 through OP_16. */
103static constexpr bool IsSmallInteger(opcodetype opcode)

Callers 1

SolverFunction · 0.85

Calls 2

sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected