| 61 | } |
| 62 | |
| 63 | bool 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 | |
| 76 | bool CachingTransactionSignatureChecker::VerifySchnorrSignature(std::span<const unsigned char> sig, const XOnlyPubKey& pubkey, const uint256& sighash) const |
| 77 | { |
no test coverage detected