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

Method VerifyECDSASignature

src/script/sigcache.cpp:128–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128bool CachingTransactionSignatureChecker::VerifyECDSASignature(const std::vector<unsigned char>& vchSig, const CPubKey& pubkey, const uint256& sighash) const
129{
130 uint256 entry;
131 signatureCache.ComputeEntryECDSA(entry, sighash, vchSig, pubkey);
132 if (signatureCache.Get(entry, !store))
133 return true;
134 if (!TransactionSignatureChecker::VerifyECDSASignature(vchSig, pubkey, sighash))
135 return false;
136 if (store)
137 signatureCache.Set(entry);
138 return true;
139}
140
141bool CachingTransactionSignatureChecker::VerifySchnorrSignature(Span<const unsigned char> sig, const XOnlyPubKey& pubkey, const uint256& sighash) const
142{

Callers 1

FUZZ_TARGET_INITFunction · 0.45

Calls 3

ComputeEntryECDSAMethod · 0.80
GetMethod · 0.45
SetMethod · 0.45

Tested by 1

FUZZ_TARGET_INITFunction · 0.36