Bitcoin Core 28.99.0
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
CachingTransactionSignatureChecker Class Reference

#include <sigcache.h>

Inheritance diagram for CachingTransactionSignatureChecker:
[legend]
Collaboration diagram for CachingTransactionSignatureChecker:
[legend]

Public Member Functions

 CachingTransactionSignatureChecker (const CTransaction *txToIn, unsigned int nInIn, const CAmount &amountIn, bool storeIn, SignatureCache &signature_cache, PrecomputedTransactionData &txdataIn)
 
bool VerifyECDSASignature (const std::vector< unsigned char > &vchSig, const CPubKey &vchPubKey, const uint256 &sighash) const override
 
bool VerifySchnorrSignature (Span< const unsigned char > sig, const XOnlyPubKey &pubkey, const uint256 &sighash) const override
 
- Public Member Functions inherited from GenericTransactionSignatureChecker< T >
 GenericTransactionSignatureChecker (const T *txToIn, unsigned int nInIn, const CAmount &amountIn, MissingDataBehavior mdb)
 
 GenericTransactionSignatureChecker (const T *txToIn, unsigned int nInIn, const CAmount &amountIn, const PrecomputedTransactionData &txdataIn, MissingDataBehavior mdb)
 
bool CheckECDSASignature (const std::vector< unsigned char > &scriptSig, const std::vector< unsigned char > &vchPubKey, const CScript &scriptCode, SigVersion sigversion) const override
 
bool CheckSchnorrSignature (Span< const unsigned char > sig, Span< const unsigned char > pubkey, SigVersion sigversion, ScriptExecutionData &execdata, ScriptError *serror=nullptr) const override
 
bool CheckLockTime (const CScriptNum &nLockTime) const override
 
bool CheckSequence (const CScriptNum &nSequence) const override
 
- Public Member Functions inherited from BaseSignatureChecker
virtual bool CheckECDSASignature (const std::vector< unsigned char > &scriptSig, const std::vector< unsigned char > &vchPubKey, const CScript &scriptCode, SigVersion sigversion) const
 
virtual bool CheckSchnorrSignature (Span< const unsigned char > sig, Span< const unsigned char > pubkey, SigVersion sigversion, ScriptExecutionData &execdata, ScriptError *serror=nullptr) const
 
virtual bool CheckLockTime (const CScriptNum &nLockTime) const
 
virtual bool CheckSequence (const CScriptNum &nSequence) const
 
virtual ~BaseSignatureChecker ()=default
 

Private Attributes

bool store
 
SignatureCachem_signature_cache
 

Additional Inherited Members

virtual bool VerifyECDSASignature (const std::vector< unsigned char > &vchSig, const CPubKey &vchPubKey, const uint256 &sighash) const
 
virtual bool VerifySchnorrSignature (Span< const unsigned char > sig, const XOnlyPubKey &pubkey, const uint256 &sighash) const
 

Detailed Description

Definition at line 63 of file sigcache.h.

Constructor & Destructor Documentation

◆ CachingTransactionSignatureChecker()

CachingTransactionSignatureChecker::CachingTransactionSignatureChecker ( const CTransaction txToIn,
unsigned int  nInIn,
const CAmount amountIn,
bool  storeIn,
SignatureCache signature_cache,
PrecomputedTransactionData txdataIn 
)
inline

Definition at line 70 of file sigcache.h.

Member Function Documentation

◆ VerifyECDSASignature()

bool CachingTransactionSignatureChecker::VerifyECDSASignature ( const std::vector< unsigned char > &  vchSig,
const CPubKey vchPubKey,
const uint256 sighash 
) const
overridevirtual

Reimplemented from GenericTransactionSignatureChecker< T >.

Definition at line 63 of file sigcache.cpp.

Here is the call graph for this function:

◆ VerifySchnorrSignature()

bool CachingTransactionSignatureChecker::VerifySchnorrSignature ( Span< const unsigned char >  sig,
const XOnlyPubKey pubkey,
const uint256 sighash 
) const
overridevirtual

Reimplemented from GenericTransactionSignatureChecker< T >.

Definition at line 76 of file sigcache.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ m_signature_cache

SignatureCache& CachingTransactionSignatureChecker::m_signature_cache
private

Definition at line 67 of file sigcache.h.

◆ store

bool CachingTransactionSignatureChecker::store
private

Definition at line 66 of file sigcache.h.


The documentation for this class was generated from the following files: