Bitcoin Core  0.19.99
P2P Digital Currency
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
GenericTransactionSignatureChecker< T > Class Template Reference

#include <interpreter.h>

Inheritance diagram for GenericTransactionSignatureChecker< T >:
[legend]
Collaboration diagram for GenericTransactionSignatureChecker< T >:
[legend]

Public Member Functions

 GenericTransactionSignatureChecker (const T *txToIn, unsigned int nInIn, const CAmount &amountIn)
 
 GenericTransactionSignatureChecker (const T *txToIn, unsigned int nInIn, const CAmount &amountIn, const PrecomputedTransactionData &txdataIn)
 
bool CheckSig (const std::vector< unsigned char > &scriptSig, const std::vector< unsigned char > &vchPubKey, const CScript &scriptCode, SigVersion sigversion) const override
 
bool CheckLockTime (const CScriptNum &nLockTime) const override
 
bool CheckSequence (const CScriptNum &nSequence) const override
 
- Public Member Functions inherited from BaseSignatureChecker
virtual ~BaseSignatureChecker ()
 

Protected Member Functions

virtual bool VerifySignature (const std::vector< unsigned char > &vchSig, const CPubKey &vchPubKey, const uint256 &sighash) const
 

Private Attributes

const T * txTo
 
unsigned int nIn
 
const CAmount amount
 
const PrecomputedTransactionDatatxdata
 

Detailed Description

template<class T>
class GenericTransactionSignatureChecker< T >

Definition at line 166 of file interpreter.h.

Constructor & Destructor Documentation

◆ GenericTransactionSignatureChecker() [1/2]

template<class T >
GenericTransactionSignatureChecker< T >::GenericTransactionSignatureChecker ( const T *  txToIn,
unsigned int  nInIn,
const CAmount amountIn 
)
inline

Definition at line 178 of file interpreter.h.

◆ GenericTransactionSignatureChecker() [2/2]

template<class T >
GenericTransactionSignatureChecker< T >::GenericTransactionSignatureChecker ( const T *  txToIn,
unsigned int  nInIn,
const CAmount amountIn,
const PrecomputedTransactionData txdataIn 
)
inline

Definition at line 179 of file interpreter.h.

Member Function Documentation

◆ CheckLockTime()

template<class T >
bool GenericTransactionSignatureChecker< T >::CheckLockTime ( const CScriptNum nLockTime) const
overridevirtual

Reimplemented from BaseSignatureChecker.

Definition at line 1332 of file interpreter.cpp.

◆ CheckSequence()

template<class T >
bool GenericTransactionSignatureChecker< T >::CheckSequence ( const CScriptNum nSequence) const
overridevirtual

Reimplemented from BaseSignatureChecker.

Definition at line 1369 of file interpreter.cpp.

Here is the call graph for this function:

◆ CheckSig()

template<class T >
bool GenericTransactionSignatureChecker< T >::CheckSig ( const std::vector< unsigned char > &  scriptSig,
const std::vector< unsigned char > &  vchPubKey,
const CScript scriptCode,
SigVersion  sigversion 
) const
overridevirtual

Reimplemented from BaseSignatureChecker.

Definition at line 1310 of file interpreter.cpp.

Here is the call graph for this function:

◆ VerifySignature()

template<class T >
bool GenericTransactionSignatureChecker< T >::VerifySignature ( const std::vector< unsigned char > &  vchSig,
const CPubKey vchPubKey,
const uint256 sighash 
) const
protectedvirtual

Reimplemented in CachingTransactionSignatureChecker.

Definition at line 1304 of file interpreter.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ amount

template<class T >
const CAmount GenericTransactionSignatureChecker< T >::amount
private

Definition at line 171 of file interpreter.h.

◆ nIn

template<class T >
unsigned int GenericTransactionSignatureChecker< T >::nIn
private

Definition at line 170 of file interpreter.h.

◆ txdata

template<class T >
const PrecomputedTransactionData* GenericTransactionSignatureChecker< T >::txdata
private

Definition at line 172 of file interpreter.h.

◆ txTo

template<class T >
const T* GenericTransactionSignatureChecker< T >::txTo
private

Definition at line 169 of file interpreter.h.


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