MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / CachingTransactionSignatureChecker

Class CachingTransactionSignatureChecker

src/script/sigcache.h:66–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64};
65
66class CachingTransactionSignatureChecker : public TransactionSignatureChecker
67{
68private:
69 bool store;
70 SignatureCache& m_signature_cache;
71
72public:
73 CachingTransactionSignatureChecker(const CTransaction* txToIn, unsigned int nInIn, const CAmount& amountIn, bool storeIn, SignatureCache& signature_cache, PrecomputedTransactionData& txdataIn) : TransactionSignatureChecker(txToIn, nInIn, amountIn, txdataIn, MissingDataBehavior::ASSERT_FAIL), store(storeIn), m_signature_cache(signature_cache) {}
74
75 bool VerifyECDSASignature(const std::vector<unsigned char>& vchSig, const CPubKey& vchPubKey, const uint256& sighash) const override;
76 bool VerifySchnorrSignature(std::span<const unsigned char> sig, const XOnlyPubKey& pubkey, const uint256& sighash) const override;
77};
78
79#endif // BITCOIN_SCRIPT_SIGCACHE_H

Callers 1

operator()Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected