MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / VerifyECDSASignature

Method VerifyECDSASignature

src/script/sigcache.cpp:63–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63bool CachingTransactionSignatureChecker::VerifyECDSASignature(const std::vector<unsigned char>& vchSig, const CPubKey& pubkey, const uint256& sighash) const
64{
65 uint256 entry;
66 m_signature_cache.ComputeEntryECDSA(entry, sighash, vchSig, pubkey);
67 if (m_signature_cache.Get(entry, !store))
68 return true;
69 if (!TransactionSignatureChecker::VerifyECDSASignature(vchSig, pubkey, sighash))
70 return false;
71 if (store)
72 m_signature_cache.Set(entry);
73 return true;
74}
75
76bool CachingTransactionSignatureChecker::VerifySchnorrSignature(std::span<const unsigned char> sig, const XOnlyPubKey& pubkey, const uint256& sighash) const
77{

Callers 1

Calls 3

ComputeEntryECDSAMethod · 0.80
GetMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected