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 BaseSignatureChecker & | Checker () 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 CKeyStore & | KeyStore () const |
virtual | ~BaseSignatureCreator () |
Private Attributes | |
const CTransaction * | txTo |
unsigned int | nIn |
int | nHashType |
CAmount | amount |
const TransactionSignatureChecker | checker |
Additional Inherited Members | |
Protected Attributes inherited from BaseSignatureCreator | |
const CKeyStore * | keystore |
Detailed Description
Constructor & Destructor Documentation
◆ TransactionSignatureCreator()
TransactionSignatureCreator::TransactionSignatureCreator | ( | const CKeyStore * | keystoreIn, |
const CTransaction * | txToIn, | ||
unsigned int | nInIn, | ||
const CAmount & | amountIn, | ||
int | nHashTypeIn = SIGHASH_ALL |
||
) |
Member Function Documentation
◆ Checker()
|
inlineoverridevirtual |
◆ CreateSig()
|
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
|
private |
Definition at line 38 of file sign.h.
Referenced by CreateSig().
◆ checker
|
private |
◆ nHashType
|
private |
Definition at line 37 of file sign.h.
Referenced by CreateSig().
◆ nIn
|
private |
Definition at line 36 of file sign.h.
Referenced by CreateSig().
◆ txTo
|
private |
Definition at line 35 of file sign.h.
Referenced by CreateSig().
The documentation for this class was generated from the following files: