mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-08 21:59:10 +02:00
Abstract out UpdatePSBTOutput from FillPSBT
This commit is contained in:
@@ -565,6 +565,12 @@ bool PSBTInputSigned(const PSBTInput& input);
|
||||
/** Signs a PSBTInput, verifying that all provided data matches what is being signed. */
|
||||
bool SignPSBTInput(const SigningProvider& provider, PartiallySignedTransaction& psbt, int index, int sighash = SIGHASH_ALL, SignatureData* out_sigdata = nullptr, 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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user