| 7 | #include "sigcache.h" |
| 8 | |
| 9 | void CSignatureCache::ComputeEntry(uint256& entry, const uint256& sigHash, |
| 10 | const std::vector<unsigned char>& vchSig, |
| 11 | const CPubKey& pubKey) { |
| 12 | CSHA256() |
| 13 | .Write(sigHash.begin(), 32) |
| 14 | .Write(&pubKey[0], pubKey.size()) |
| 15 | .Write(&vchSig[0], vchSig.size()) |
| 16 | .Finalize(entry.begin()); |
| 17 | } |
| 18 | |
| 19 | bool CSignatureCache::Get(const uint256& sigHash, const std::vector<unsigned char>& vchSig, |
| 20 | const CPubKey& pubKey) { |