Changeset View
Changeset View
Standalone View
Standalone View
src/script/sign.h
Show First 20 Lines • Show All 96 Lines • ▼ Show 20 Lines | |||||
/** Produce a script signature for a transaction. */ | /** Produce a script signature for a transaction. */ | ||||
bool SignSignature(const SigningProvider &provider, const CScript &fromPubKey, | bool SignSignature(const SigningProvider &provider, const CScript &fromPubKey, | ||||
CMutableTransaction &txTo, unsigned int nIn, | CMutableTransaction &txTo, unsigned int nIn, | ||||
const Amount amount, SigHashType sigHashType); | const Amount amount, SigHashType sigHashType); | ||||
bool SignSignature(const SigningProvider &provider, const CTransaction &txFrom, | bool SignSignature(const SigningProvider &provider, const CTransaction &txFrom, | ||||
CMutableTransaction &txTo, unsigned int nIn, | CMutableTransaction &txTo, unsigned int nIn, | ||||
SigHashType sigHashType); | SigHashType sigHashType); | ||||
/** | |||||
* Combine two script signatures using a generic signature checker, | |||||
* intelligently, possibly with OP_0 placeholders. | |||||
*/ | |||||
SignatureData CombineSignatures(const CScript &scriptPubKey, | |||||
const BaseSignatureChecker &checker, | |||||
const SignatureData &scriptSig1, | |||||
const SignatureData &scriptSig2); | |||||
/** Extract signature data from a transaction input, and insert it. */ | /** Extract signature data from a transaction input, and insert it. */ | ||||
SignatureData DataFromTransaction(const CMutableTransaction &tx, | SignatureData DataFromTransaction(const CMutableTransaction &tx, | ||||
unsigned int nIn, const CTxOut &txout); | unsigned int nIn, const CTxOut &txout); | ||||
void UpdateInput(CTxIn &input, const SignatureData &data); | void UpdateInput(CTxIn &input, const SignatureData &data); | ||||
#endif // BITCOIN_SCRIPT_SIGN_H | #endif // BITCOIN_SCRIPT_SIGN_H |