| 64 | }; |
| 65 | |
| 66 | class CachingTransactionSignatureChecker : public TransactionSignatureChecker |
| 67 | { |
| 68 | private: |
| 69 | bool store; |
| 70 | SignatureCache& m_signature_cache; |
| 71 | |
| 72 | public: |
| 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 |