| 37 | } |
| 38 | |
| 39 | void SignatureCache::ComputeEntryECDSA(uint256& entry, const uint256& hash, const std::vector<unsigned char>& vchSig, const CPubKey& pubkey) const |
| 40 | { |
| 41 | CSHA256 hasher = m_salted_hasher_ecdsa; |
| 42 | hasher.Write(hash.begin(), 32).Write(pubkey.data(), pubkey.size()).Write(vchSig.data(), vchSig.size()).Finalize(entry.begin()); |
| 43 | } |
| 44 | |
| 45 | void SignatureCache::ComputeEntrySchnorr(uint256& entry, const uint256& hash, std::span<const unsigned char> sig, const XOnlyPubKey& pubkey) const |
| 46 | { |