MCPcopy Create free account
hub / github.com/ElementsProject/elements / CachingTransactionSignatureChecker

Class CachingTransactionSignatureChecker

src/script/sigcache.h:27–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25class CPubKey;
26
27class CachingTransactionSignatureChecker : public TransactionSignatureChecker
28{
29private:
30 bool store;
31
32public:
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
39void InitSignatureCache();
40

Callers 1

operator()Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected