PIVX Core  5.6.99
P2P Digital Currency
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
TransactionSignatureChecker Class Reference

#include <interpreter.h>

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

Public Member Functions

 TransactionSignatureChecker (const CTransaction *txToIn, unsigned int nInIn, const CAmount &amountIn)
 
 TransactionSignatureChecker (const CTransaction *txToIn, unsigned int nInIn, const CAmount &amountIn, const PrecomputedTransactionData &cachedHashesIn)
 
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 CheckColdStake (bool fAllowLastOutputFree, const CScript &prevoutScript, std::vector< valtype > &stack, unsigned int flags, ScriptError *serror) 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 CTransactiontxTo
 
unsigned int nIn
 
const CAmount amount
 
const PrecomputedTransactionDataprecomTxData
 

Detailed Description

Definition at line 122 of file interpreter.h.

Constructor & Destructor Documentation

◆ TransactionSignatureChecker() [1/2]

TransactionSignatureChecker::TransactionSignatureChecker ( const CTransaction txToIn,
unsigned int  nInIn,
const CAmount amountIn 
)
inline

Definition at line 134 of file interpreter.h.

◆ TransactionSignatureChecker() [2/2]

TransactionSignatureChecker::TransactionSignatureChecker ( const CTransaction txToIn,
unsigned int  nInIn,
const CAmount amountIn,
const PrecomputedTransactionData cachedHashesIn 
)
inline

Definition at line 135 of file interpreter.h.

Member Function Documentation

◆ CheckColdStake()

bool TransactionSignatureChecker::CheckColdStake ( bool  fAllowLastOutputFree,
const CScript prevoutScript,
std::vector< valtype > &  stack,
unsigned int  flags,
ScriptError serror 
) const
overridevirtual

Reimplemented from BaseSignatureChecker.

Definition at line 1356 of file interpreter.cpp.

Here is the call graph for this function:

◆ CheckLockTime()

bool TransactionSignatureChecker::CheckLockTime ( const CScriptNum nLockTime) const
overridevirtual

Reimplemented from BaseSignatureChecker.

Definition at line 1320 of file interpreter.cpp.

◆ CheckSig()

bool TransactionSignatureChecker::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 1299 of file interpreter.cpp.

Here is the call graph for this function:

◆ VerifySignature()

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

Reimplemented in CachingTransactionSignatureChecker.

Definition at line 1294 of file interpreter.cpp.

Member Data Documentation

◆ amount

const CAmount TransactionSignatureChecker::amount
private

Definition at line 127 of file interpreter.h.

◆ nIn

unsigned int TransactionSignatureChecker::nIn
private

Definition at line 126 of file interpreter.h.

◆ precomTxData

const PrecomputedTransactionData* TransactionSignatureChecker::precomTxData
private

Definition at line 128 of file interpreter.h.

◆ txTo

const CTransaction* TransactionSignatureChecker::txTo
private

Definition at line 125 of file interpreter.h.


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