From 09cd4ed9760654ded3e6920b99606ccec026e8f6 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Sun, 24 Sep 2023 23:41:10 +0000 Subject: [PATCH] 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. --- lightning/src/sign/mod.rs | 3 +++ 1 file changed, 3 insertions(+) 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, .. } => { -- 2.30.2