Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Functions
sign.h File Reference
#include "script/interpreter.h"
#include "coins.h"
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)
 
bool VerifySignature (const Coin &coin, uint256 txFromHash, const CTransaction &txTo, unsigned int nIn, unsigned int flags)
 
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

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

Here is the call graph for this function:

Here is the caller graph for this function:

SignatureData DataFromTransaction ( const CMutableTransaction tx,
unsigned int  nIn 
)

Extract signature data from a transaction, and insert it.

Definition at line 189 of file sign.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool ProduceSignature ( const BaseSignatureCreator creator,
const CScript scriptPubKey,
SignatureData sigdata 
)

Produce a script signature using a generic signature creator.

Definition at line 141 of file sign.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 218 of file sign.cpp.

Here is the call graph for this function:

void UpdateTransaction ( CMutableTransaction tx,
unsigned int  nIn,
const SignatureData data 
)

Definition at line 198 of file sign.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool VerifySignature ( const Coin coin,
uint256  txFromHash,
const CTransaction txTo,
unsigned int  nIn,
unsigned int  flags 
)

Definition at line 228 of file sign.cpp.

Here is the call graph for this function:

Here is the caller graph for this function: