6#ifndef BITCOIN_SCRIPT_SIGCACHE_H
7#define BITCOIN_SCRIPT_SIGCACHE_H
26 bool IsCached(
const std::vector<uint8_t> &vchSig,
const CPubKey &vchPubKey,
32 const Amount amountIn,
bool storeIn,
39 const uint256 &sighash)
const override;
An encapsulated public key.
The basic transaction that is broadcasted on the network and contained in blocks.
friend class TestCachingTransactionSignatureChecker
bool VerifySignature(const std::vector< uint8_t > &vchSig, const CPubKey &vchPubKey, const uint256 &sighash) const override
bool IsCached(const std::vector< uint8_t > &vchSig, const CPubKey &vchPubKey, const uint256 &sighash) const
CachingTransactionSignatureChecker(const CTransaction *txToIn, unsigned int nInIn, const Amount amountIn, bool storeIn, PrecomputedTransactionData &txdataIn)
static constexpr size_t DEFAULT_MAX_SIG_CACHE_BYTES
bool InitSignatureCache(size_t max_size_bytes)
Precompute sighash midstate to avoid quadratic hashing.