Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

sign.h File Reference
+ Include dependency graph for sign.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  BaseSignatureCreator
 Virtual base class for signature creators. More...
 
class  TransactionSignatureCreator
 A signature creator for transactions. More...
 
class  MutableTransactionSignatureCreator
 
class  DummySignatureCreator
 A signature creator that just produces 72-byte empty signatures. More...
 
struct  SignatureData
 

Functions

bool ProduceSignature (const BaseSignatureCreator &creator, const CScript &scriptPubKey, SignatureData &sigdata)
 Produce a script signature using a generic signature creator. More...
 
bool SignSignature (const CKeyStore &keystore, const CScript &fromPubKey, CMutableTransaction &txTo, unsigned int nIn, const CAmount &amount, int nHashType)
 Produce a script signature for a transaction. More...
 
bool SignSignature (const CKeyStore &keystore, const CTransaction &txFrom, CMutableTransaction &txTo, unsigned int nIn, int nHashType)
 
SignatureData CombineSignatures (const CScript &scriptPubKey, const BaseSignatureChecker &checker, const SignatureData &scriptSig1, const SignatureData &scriptSig2)
 Combine two script signatures using a generic signature checker, intelligently, possibly with OP_0 placeholders. More...
 
SignatureData DataFromTransaction (const CMutableTransaction &tx, unsigned int nIn)
 Extract signature data from a transaction, and insert it. More...
 
void UpdateTransaction (CMutableTransaction &tx, unsigned int nIn, const SignatureData &data)
 

Function Documentation

◆ CombineSignatures()

SignatureData CombineSignatures ( const CScript scriptPubKey,
const BaseSignatureChecker checker,
const SignatureData scriptSig1,
const SignatureData scriptSig2 
)

Combine two script signatures using a generic signature checker, intelligently, possibly with OP_0 placeholders.

Definition at line 310 of file sign.cpp.

References CombineSignatures(), SIGVERSION_BASE, and Solver().

◆ DataFromTransaction()

SignatureData DataFromTransaction ( const CMutableTransaction tx,
unsigned int  nIn 
)

Extract signature data from a transaction, and insert it.

Definition at line 153 of file sign.cpp.

References SignatureData::scriptSig, and CMutableTransaction::vin.

Referenced by combinerawtransaction(), MutateTxSign(), and signrawtransaction().

◆ ProduceSignature()

◆ SignSignature() [1/2]

bool SignSignature ( const CKeyStore keystore,
const CScript fromPubKey,
CMutableTransaction txTo,
unsigned int  nIn,
const CAmount amount,
int  nHashType 
)

Produce a script signature for a transaction.

Definition at line 167 of file sign.cpp.

References ProduceSignature(), UpdateTransaction(), and CMutableTransaction::vin.

Referenced by CWallet::CreateCollateralTransaction(), CPrivateSendClientSession::SignFinalTransaction(), and SignSignature().

◆ SignSignature() [2/2]

bool SignSignature ( const CKeyStore keystore,
const CTransaction txFrom,
CMutableTransaction txTo,
unsigned int  nIn,
int  nHashType 
)

Definition at line 180 of file sign.cpp.

References SignSignature(), CMutableTransaction::vin, and CTransaction::vout.

◆ UpdateTransaction()

void UpdateTransaction ( CMutableTransaction tx,
unsigned int  nIn,
const SignatureData data 
)
Released under the MIT license