Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
}
302
bool 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
ScriptHasValidPAKProof
Function · 0.80
Calls
1
size
Method · 0.45
Tested by
no test coverage detected