6 #ifndef BITCOIN_SCRIPT_SIGCACHE_H
7 #define BITCOIN_SCRIPT_SIGCACHE_H
27 bool IsCached(
const std::vector<uint8_t> &vchSig,
const CPubKey &vchPubKey,
33 const Amount amountIn,
bool storeIn,
40 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)
void InitSignatureCache()
static const unsigned int DEFAULT_MAX_SIG_CACHE_SIZE
static const int64_t MAX_MAX_SIG_CACHE_SIZE
Precompute sighash midstate to avoid quadratic hashing.