Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
TransactionSignatureCreator Class Reference

A signature creator for transactions. More...

#include <sign.h>

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

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 35 of file sign.h.

Constructor & Destructor Documentation

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

Definition at line 19 of file sign.cpp.

Member Function Documentation

const BaseSignatureChecker& TransactionSignatureCreator::Checker ( ) const
inlineoverridevirtual

Implements BaseSignatureCreator.

Definition at line 44 of file sign.h.

Here is the call graph for this function:

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 21 of file sign.cpp.

Here is the call graph for this function:

Member Data Documentation

CAmount TransactionSignatureCreator::amount
private

Definition at line 39 of file sign.h.

const TransactionSignatureChecker TransactionSignatureCreator::checker
private

Definition at line 40 of file sign.h.

int TransactionSignatureCreator::nHashType
private

Definition at line 38 of file sign.h.

unsigned int TransactionSignatureCreator::nIn
private

Definition at line 37 of file sign.h.

const CTransaction* TransactionSignatureCreator::txTo
private

Definition at line 36 of file sign.h.


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