Changeset View
Changeset View
Standalone View
Standalone View
src/psbt.h
Show First 20 Lines • Show All 500 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
bool SignPSBTInput(const SigningProvider &provider, | bool SignPSBTInput(const SigningProvider &provider, | ||||
PartiallySignedTransaction &psbt, int index, | PartiallySignedTransaction &psbt, int index, | ||||
SigHashType sighash = SigHashType(), | SigHashType sighash = SigHashType(), | ||||
SignatureData *out_sigdata = nullptr, | SignatureData *out_sigdata = nullptr, | ||||
bool use_dummy = false); | bool use_dummy = false); | ||||
/** | /** | ||||
* Updates a PSBTOutput with information from provider. | |||||
* | |||||
* This fills in the redeem_script, witness_script, and hd_keypaths where | |||||
* possible. | |||||
*/ | |||||
void UpdatePSBTOutput(const SigningProvider &provider, | |||||
PartiallySignedTransaction &psbt, int index); | |||||
/** | |||||
* Finalizes a PSBT if possible, combining partial signatures. | * Finalizes a PSBT if possible, combining partial signatures. | ||||
* | * | ||||
* @param[in,out] &psbtx reference to PartiallySignedTransaction to finalize | * @param[in,out] &psbtx reference to PartiallySignedTransaction to finalize | ||||
* return True if the PSBT is now complete, false otherwise | * return True if the PSBT is now complete, false otherwise | ||||
*/ | */ | ||||
bool FinalizePSBT(PartiallySignedTransaction &psbtx); | bool FinalizePSBT(PartiallySignedTransaction &psbtx); | ||||
/** | /** | ||||
Show All 33 Lines |