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

Method VerifySignature

src/script/sigcache.cpp:119–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119bool CachingTransactionSignatureChecker::VerifySignature(const std::vector<unsigned char>& vchSig, const CPubKey& pubkey, const uint256& sighash, uint32_t flags) const
120{
121 uint256 entry;
122 signatureCache.ComputeEntry(entry, sighash, vchSig, pubkey, flags);
123 if (signatureCache.Get(entry, !store))
124 return true;
125 if (!TransactionSignatureChecker::VerifySignature(vchSig, pubkey, sighash, flags))
126 return false;
127 if (store)
128 signatureCache.Set(entry);
129 return true;
130}

Callers

nothing calls this directly

Calls 3

ComputeEntryMethod · 0.80
GetMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected