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

Method VerifySchnorrSignature

src/script/sigcache.cpp:141–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141bool CachingTransactionSignatureChecker::VerifySchnorrSignature(Span<const unsigned char> sig, const XOnlyPubKey& pubkey, const uint256& sighash) const
142{
143 uint256 entry;
144 signatureCache.ComputeEntrySchnorr(entry, sighash, sig, pubkey);
145 if (signatureCache.Get(entry, !store)) return true;
146 if (!TransactionSignatureChecker::VerifySchnorrSignature(sig, pubkey, sighash)) return false;
147 if (store) signatureCache.Set(entry);
148 return true;
149}
150
151//
152// ELEMENTS CACHES

Callers 1

FUZZ_TARGET_INITFunction · 0.45

Calls 3

ComputeEntrySchnorrMethod · 0.80
GetMethod · 0.45
SetMethod · 0.45

Tested by 1

FUZZ_TARGET_INITFunction · 0.36