6 #ifndef BITCOIN_SCRIPT_SIGCACHE_H
7 #define BITCOIN_SCRIPT_SIGCACHE_H
34 template <u
int8_t hash_select>
37 static_assert(hash_select <8,
"SignatureCacheHasher only has 8 hashes available.");
58 #endif // BITCOIN_SCRIPT_SIGCACHE_H
bool VerifySchnorrSignature(Span< const unsigned char > sig, const XOnlyPubKey &pubkey, const uint256 &sighash) const override
static const unsigned int DEFAULT_MAX_SIG_CACHE_SIZE
void InitSignatureCache()
CachingTransactionSignatureChecker(const CTransaction *txToIn, unsigned int nInIn, const CAmount &amountIn, bool storeIn, PrecomputedTransactionData &txdataIn)
We're hashing a nonce into the entries themselves, so we don't need extra blinding in the set hash co...
int64_t CAmount
Amount in satoshis (Can be negative)
An encapsulated public key.
uint32_t operator()(const uint256 &key) const
static const int64_t MAX_MAX_SIG_CACHE_SIZE
void * memcpy(void *a, const void *b, size_t c)
bool VerifyECDSASignature(const std::vector< unsigned char > &vchSig, const CPubKey &vchPubKey, const uint256 &sighash) const override
A Span is an object that can refer to a contiguous sequence of objects.
The basic transaction that is broadcasted on the network and contained in blocks. ...