From: Matt Corallo Date: Sun, 24 Sep 2023 23:41:10 +0000 (+0000) Subject: Mark `SpendableOutputDescriptor::to_psbt_input` as no-export X-Git-Tag: v0.0.117~4^2~6 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=09cd4ed9760654ded3e6920b99606ccec026e8f6;p=rust-lightning Mark `SpendableOutputDescriptor::to_psbt_input` as no-export Its honestly likely not all that useful as its not materially interoperable with other PSBT libraries. Instead, users should simply fetch the full PSBT and use the inputs from it as they see fit. --- diff --git a/lightning/src/sign/mod.rs b/lightning/src/sign/mod.rs index 39f1001c..0e81d481 100644 --- a/lightning/src/sign/mod.rs +++ b/lightning/src/sign/mod.rs @@ -275,6 +275,9 @@ impl SpendableOutputDescriptor { /// /// Note that this does not include any signatures, just the information required to /// construct the transaction and sign it. + /// + /// This is not exported to bindings users as there is no standard serialization for an input. + /// See [`Self::create_spendable_outputs_psbt`] instead. pub fn to_psbt_input(&self) -> bitcoin::psbt::Input { match self { SpendableOutputDescriptor::StaticOutput { output, .. } => {