| 25 | class CPubKey; |
| 26 | |
| 27 | class CachingTransactionSignatureChecker : public TransactionSignatureChecker |
| 28 | { |
| 29 | private: |
| 30 | bool store; |
| 31 | |
| 32 | public: |
| 33 | CachingTransactionSignatureChecker(const CTransaction* txToIn, unsigned int nInIn, const CConfidentialValue& amountIn, bool storeIn, PrecomputedTransactionData& txdataIn) : TransactionSignatureChecker(txToIn, nInIn, amountIn, txdataIn, MissingDataBehavior::ASSERT_FAIL), store(storeIn) {} |
| 34 | |
| 35 | bool VerifyECDSASignature(const std::vector<unsigned char>& vchSig, const CPubKey& vchPubKey, const uint256& sighash) const override; |
| 36 | bool VerifySchnorrSignature(Span<const unsigned char> sig, const XOnlyPubKey& pubkey, const uint256& sighash) const override; |
| 37 | }; |
| 38 | |
| 39 | void InitSignatureCache(); |
| 40 | |