Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

TransactionSignatureCreator Class Reference

A signature creator for transactions. More...

#include <sign.h>

+ Inheritance diagram for TransactionSignatureCreator:
+ Collaboration diagram for TransactionSignatureCreator:

Public Member Functions

 TransactionSignatureCreator (const CKeyStore *keystoreIn, const CTransaction *txToIn, unsigned int nInIn, const CAmount &amountIn, int nHashTypeIn=SIGHASH_ALL)
 
const BaseSignatureCheckerChecker () const override
 
bool CreateSig (std::vector< unsigned char > &vchSig, const CKeyID &keyid, const CScript &scriptCode, SigVersion sigversion) const override
 Create a singular (non-script) signature. More...
 
- Public Member Functions inherited from BaseSignatureCreator
 BaseSignatureCreator (const CKeyStore *keystoreIn)
 
const CKeyStoreKeyStore () const
 
virtual ~BaseSignatureCreator ()
 

Private Attributes

const CTransactiontxTo
 
unsigned int nIn
 
int nHashType
 
CAmount amount
 
const TransactionSignatureChecker checker
 

Additional Inherited Members

- Protected Attributes inherited from BaseSignatureCreator
const CKeyStorekeystore
 

Detailed Description

A signature creator for transactions.

Definition at line 34 of file sign.h.

Constructor & Destructor Documentation

◆ TransactionSignatureCreator()

TransactionSignatureCreator::TransactionSignatureCreator ( const CKeyStore keystoreIn,
const CTransaction txToIn,
unsigned int  nInIn,
const CAmount amountIn,
int  nHashTypeIn = SIGHASH_ALL 
)

Definition at line 18 of file sign.cpp.

Member Function Documentation

◆ Checker()

const BaseSignatureChecker& TransactionSignatureCreator::Checker ( ) const
inlineoverridevirtual

Implements BaseSignatureCreator.

Definition at line 43 of file sign.h.

References checker.

◆ CreateSig()

bool TransactionSignatureCreator::CreateSig ( std::vector< unsigned char > &  vchSig,
const CKeyID keyid,
const CScript scriptCode,
SigVersion  sigversion 
) const
overridevirtual

Create a singular (non-script) signature.

Implements BaseSignatureCreator.

Definition at line 20 of file sign.cpp.

References amount, CKeyStore::GetKey(), BaseSignatureCreator::keystore, nHashType, nIn, CKey::Sign(), SignatureHash(), and txTo.

Member Data Documentation

◆ amount

CAmount TransactionSignatureCreator::amount
private

Definition at line 38 of file sign.h.

Referenced by CreateSig().

◆ checker

const TransactionSignatureChecker TransactionSignatureCreator::checker
private

Definition at line 39 of file sign.h.

Referenced by Checker().

◆ nHashType

int TransactionSignatureCreator::nHashType
private

Definition at line 37 of file sign.h.

Referenced by CreateSig().

◆ nIn

unsigned int TransactionSignatureCreator::nIn
private

Definition at line 36 of file sign.h.

Referenced by CreateSig().

◆ txTo

const CTransaction* TransactionSignatureCreator::txTo
private

Definition at line 35 of file sign.h.

Referenced by CreateSig().


The documentation for this class was generated from the following files:
Released under the MIT license