PIVX Core  5.6.99
P2P Digital Currency
Typedefs | Functions
sign.cpp File Reference
#include "script/sign.h"
#include "key.h"
#include "keystore.h"
#include "policy/policy.h"
#include "primitives/transaction.h"
#include "script/standard.h"
#include "uint256.h"
#include "util/system.h"
Include dependency graph for sign.cpp:

Go to the source code of this file.

Typedefs

typedef std::vector< unsigned char > valtype
 

Functions

bool ProduceSignature (const BaseSignatureCreator &creator, const CScript &fromPubKey, SignatureData &sigdata, SigVersion sigversion, bool fColdStake, ScriptError *serror)
 Produce a script signature using a generic signature creator. 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)
 
bool SignSignature (const CKeyStore &keystore, const CScript &fromPubKey, CMutableTransaction &txTo, unsigned int nIn, const CAmount &amount, int nHashType, bool fColdStake)
 Produce a script signature for a transaction. More...
 
bool SignSignature (const CKeyStore &keystore, const CTransaction &txFrom, CMutableTransaction &txTo, unsigned int nIn, int nHashType, bool fColdStake)
 
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...
 
template<typename M , typename K , typename V >
bool LookupHelper (const M &map, const K &key, V &value)
 
bool IsSolvable (const CKeyStore &store, const CScript &script, bool fColdStaking)
 
FlatSigningProvider Merge (const FlatSigningProvider &a, const FlatSigningProvider &b)
 

Typedef Documentation

◆ valtype

typedef std::vector<unsigned char> valtype

Definition at line 17 of file sign.cpp.

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

Here is the call graph for this function:

◆ DataFromTransaction()

SignatureData DataFromTransaction ( const CMutableTransaction tx,
unsigned int  nIn 
)

Extract signature data from a transaction, and insert it.

Definition at line 178 of file sign.cpp.

◆ IsSolvable()

bool IsSolvable ( const CKeyStore store,
const CScript script,
bool  fColdStaking 
)

Definition at line 394 of file sign.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LookupHelper()

template<typename M , typename K , typename V >
bool LookupHelper ( const M map,
const K &  key,
V &  value 
)

Definition at line 384 of file sign.cpp.

Here is the caller graph for this function:

◆ Merge()

FlatSigningProvider Merge ( const FlatSigningProvider a,
const FlatSigningProvider b 
)

Definition at line 423 of file sign.cpp.

◆ ProduceSignature()

bool ProduceSignature ( const BaseSignatureCreator creator,
const CScript fromPubKey,
SignatureData sigdata,
SigVersion  sigversion,
bool  fColdStake,
ScriptError serror 
)

Produce a script signature using a generic signature creator.

Definition at line 153 of file sign.cpp.

Here is the caller graph for this function:

◆ SignSignature() [1/2]

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

Produce a script signature for a transaction.

Definition at line 192 of file sign.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SignSignature() [2/2]

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

Definition at line 205 of file sign.cpp.

Here is the call graph for this function:

◆ UpdateTransaction()

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

Definition at line 186 of file sign.cpp.

Here is the caller graph for this function: