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

Function GetOutpointFlag

src/script/interpreter.cpp:139–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137/** Compute the outpoint flag(u8) for a given txin **/
138template <class T>
139inline unsigned char GetOutpointFlag(const T& txin)
140{
141 return static_cast<unsigned char> ((!txin.assetIssuance.IsNull() ? (COutPoint::OUTPOINT_ISSUANCE_FLAG >> 24) : 0) |
142 (txin.m_is_pegin ? (COutPoint::OUTPOINT_PEGIN_FLAG >> 24) : 0));
143}
144
145bool static IsCompressedOrUncompressedPubKey(const valtype &vchPubKey) {
146 if (vchPubKey.size() < CPubKey::COMPRESSED_SIZE) {

Callers 3

EvalScriptFunction · 0.85
GetOutpointFlagsSHA256Function · 0.85
SignatureHashSchnorrFunction · 0.85

Calls 1

IsNullMethod · 0.45

Tested by

no test coverage detected