Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
•All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
TransactionSignatureCreator Class Reference
A signature creator for transactions. More...
#include <sign.h>


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... | |
![]() | |
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 | |
![]() | |
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: