PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Functions
sign.h File Reference
#include "script/interpreter.h"
#include "key.h"
#include "keystore.h"
#include "script/standard.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.

Functions

bool Sign1 (const CKeyID &address, const CKeyStore &keystore, uint256 hash, int nHashType, CScript &scriptSigRet)
 
bool SignSignature (const CKeyStore &keystore, const CScript &fromPubKey, CMutableTransaction &txTo, unsigned int nIn, int nHashType=SIGHASH_ALL)
 
bool SignSignature (const CKeyStore &keystore, const CTransaction &txFrom, CMutableTransaction &txTo, unsigned int nIn, int nHashType=SIGHASH_ALL)
 
CScript CombineSignatures (const CScript &scriptPubKey, const CTransaction &txTo, unsigned int nIn, const CScript &scriptSig1, const CScript &scriptSig2)
 Given two sets of signatures for scriptPubKey, possibly with OP_0 placeholders, combine them intelligently and return the result. More...
 

Function Documentation

◆ CombineSignatures()

CScript CombineSignatures ( const CScript scriptPubKey,
const CTransaction txTo,
unsigned int  nIn,
const CScript scriptSig1,
const CScript scriptSig2 
)

Given two sets of signatures for scriptPubKey, possibly with OP_0 placeholders, combine them intelligently and return the result.

Definition at line 249 of file sign.cpp.

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

◆ Sign1()

bool Sign1 ( const CKeyID address,
const CKeyStore keystore,
uint256  hash,
int  nHashType,
CScript scriptSigRet 
)

Definition at line 18 of file sign.cpp.

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

◆ SignSignature() [1/2]

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

Definition at line 96 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 = SIGHASH_ALL 
)

Definition at line 135 of file sign.cpp.

Here is the call graph for this function: