Bitcoin ABC 0.30.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 bool VerifySignature (const std::vector< uint8_t > &vchSig, const CPubKey &vchPubKey, const uint256 &sighash) const
 
virtual bool CheckSig (const std::vector< uint8_t > &vchSigIn, const std::vector< uint8_t > &vchPubKey, const CScript &scriptCode, uint32_t flags) const
 
virtual bool CheckLockTime (const CScriptNum &nLockTime) const
 
virtual bool CheckSequence (const CScriptNum &nSequence) const
 
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 22 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 30 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 115 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 122 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 41 of file sigcache.h.

Member Data Documentation

◆ store

bool CachingTransactionSignatureChecker::store
private

Definition at line 24 of file sigcache.h.


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