Bitcoin ABC  0.24.7
P2P Digital Currency
Public Member Functions | Private Member Functions | Private Attributes | Friends | 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 Amount amountIn, bool storeIn, PrecomputedTransactionData &txdataIn)
 
bool VerifySignature (const std::vector< uint8_t > &vchSig, const CPubKey &vchPubKey, const uint256 &sighash) const override
 
- Public Member Functions inherited from GenericTransactionSignatureChecker< T >
 GenericTransactionSignatureChecker (const T *txToIn, unsigned int nInIn, const Amount &amountIn)
 
 GenericTransactionSignatureChecker (const T *txToIn, unsigned int nInIn, const Amount &amountIn, const PrecomputedTransactionData &txdataIn)
 
bool CheckSig (const std::vector< uint8_t > &vchSigIn, const std::vector< uint8_t > &vchPubKey, const CScript &scriptCode, uint32_t flags) const final override
 
bool CheckLockTime (const CScriptNum &nLockTime) const final override
 
bool CheckSequence (const CScriptNum &nSequence) const final override
 
- Public Member Functions inherited from BaseSignatureChecker
virtual ~BaseSignatureChecker ()
 

Private Member Functions

bool IsCached (const std::vector< uint8_t > &vchSig, const CPubKey &vchPubKey, const uint256 &sighash) const
 

Private Attributes

bool store
 

Friends

class TestCachingTransactionSignatureChecker
 

Detailed Description

Definition at line 42 of file sigcache.h.

Constructor & Destructor Documentation

◆ CachingTransactionSignatureChecker()

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

Definition at line 50 of file sigcache.h.

Member Function Documentation

◆ IsCached()

bool CachingTransactionSignatureChecker::IsCached ( const std::vector< uint8_t > &  vchSig,
const CPubKey vchPubKey,
const uint256 sighash 
) const
private

Definition at line 108 of file sigcache.cpp.

Here is the call graph for this function:

◆ VerifySignature()

bool CachingTransactionSignatureChecker::VerifySignature ( const std::vector< uint8_t > &  vchSig,
const CPubKey vchPubKey,
const uint256 sighash 
) const
overridevirtual

Reimplemented from BaseSignatureChecker.

Definition at line 115 of file sigcache.cpp.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ TestCachingTransactionSignatureChecker

friend class TestCachingTransactionSignatureChecker
friend

Definition at line 61 of file sigcache.h.

Member Data Documentation

◆ store

bool CachingTransactionSignatureChecker::store
private

Definition at line 44 of file sigcache.h.


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