Changeset View
Changeset View
Standalone View
Standalone View
src/script/sign.h
Show First 20 Lines • Show All 692 Lines • ▼ Show 20 Lines | bool SignPSBTInput(const SigningProvider &provider, | ||||
const CMutableTransaction &tx, PSBTInput &input, int index, | const CMutableTransaction &tx, PSBTInput &input, int index, | ||||
SigHashType sighash = SigHashType()); | SigHashType sighash = SigHashType()); | ||||
/** 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); | ||||
/** | |||||
* Check whether we know how to sign for an output like this, assuming we have | |||||
* all private keys. While this function does not need private keys, the passed | |||||
* keystore is used to look up public keys and redeemscripts by hash. | |||||
* Solvability is unrelated to whether we consider this output to be ours. | |||||
*/ | |||||
bool IsSolvable(const SigningProvider &provider, const CScript &script); | |||||
#endif // BITCOIN_SCRIPT_SIGN_H | #endif // BITCOIN_SCRIPT_SIGN_H |