Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
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, 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 (std::span< const unsigned char > sig, std::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 ~BaseSignatureChecker ()=default
 

Protected Member Functions

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

Private Attributes

const TtxTo
 
const MissingDataBehavior m_mdb
 
unsigned int nIn
 
const CAmount amount
 
const PrecomputedTransactionDatatxdata
 
SigHashCache m_sighash_cache
 

Detailed Description

template<class T>
class GenericTransactionSignatureChecker< T >

Definition at line 313 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,
MissingDataBehavior mdb )
inline

Definition at line 328 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,
MissingDataBehavior mdb )
inline

Definition at line 329 of file interpreter.h.

Member Function Documentation

◆ CheckECDSASignature()

template<class T >
bool GenericTransactionSignatureChecker< T >::CheckECDSASignature ( 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 1692 of file interpreter.cpp.

Here is the call graph for this function:

◆ CheckLockTime()

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

Reimplemented from BaseSignatureChecker.

Definition at line 1745 of file interpreter.cpp.

Here is the call graph for this function:

◆ CheckSchnorrSignature()

template<class T >
bool GenericTransactionSignatureChecker< T >::CheckSchnorrSignature ( std::span< const unsigned char > sig,
std::span< const unsigned char > pubkey,
SigVersion sigversion,
ScriptExecutionData & execdata,
ScriptError * serror = nullptr ) const
overridevirtual

Reimplemented from BaseSignatureChecker.

Definition at line 1717 of file interpreter.cpp.

Here is the call graph for this function:

◆ CheckSequence()

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

Reimplemented from BaseSignatureChecker.

Definition at line 1782 of file interpreter.cpp.

Here is the call graph for this function:

◆ VerifyECDSASignature()

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

Reimplemented in CachingTransactionSignatureChecker.

Definition at line 1680 of file interpreter.cpp.

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

◆ VerifySchnorrSignature()

template<class T >
bool GenericTransactionSignatureChecker< T >::VerifySchnorrSignature ( std::span< const unsigned char > sig,
const XOnlyPubKey & pubkey,
const uint256 & sighash ) const
protectedvirtual

Reimplemented in CachingTransactionSignatureChecker.

Definition at line 1686 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 319 of file interpreter.h.

◆ m_mdb

template<class T >
const MissingDataBehavior GenericTransactionSignatureChecker< T >::m_mdb
private

Definition at line 317 of file interpreter.h.

◆ m_sighash_cache

template<class T >
SigHashCache GenericTransactionSignatureChecker< T >::m_sighash_cache
mutableprivate

Definition at line 321 of file interpreter.h.

◆ nIn

Definition at line 318 of file interpreter.h.

◆ txdata

Definition at line 320 of file interpreter.h.

◆ txTo

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

Definition at line 316 of file interpreter.h.


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