aboutsummaryrefslogtreecommitdiff
path: root/src/psbt.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2019-02-16 15:49:36 -0800
committerPieter Wuille <pieter.wuille@gmail.com>2019-05-10 14:31:22 -0700
commit3135c1a2d2e2fb31bc362c848bd2456d576e408b (patch)
tree7208865e9fd0c744e70e6c30b4bffa9519b81e96 /src/psbt.h
parentfb90ec3c33e824f5abb6a68452c683d6ce8b3e4a (diff)
downloadbitcoin-3135c1a2d2e2fb31bc362c848bd2456d576e408b.tar.xz
Abstract out UpdatePSBTOutput from FillPSBT
Diffstat (limited to 'src/psbt.h')
-rw-r--r--src/psbt.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/psbt.h b/src/psbt.h
index 1bc1e91a84..f3840b9ed3 100644
--- a/src/psbt.h
+++ b/src/psbt.h
@@ -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.
*