Mark `SpendableOutputDescriptor::to_psbt_input` as no-export
authorMatt Corallo <git@bluematt.me>
Sun, 24 Sep 2023 23:41:10 +0000 (23:41 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 1 Oct 2023 00:05:01 +0000 (00:05 +0000)
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

index 39f1001c480fd45926aed14355d78068028bfdc5..0e81d481efb6d48159809687b0f81df9fccaa69c 100644 (file)
@@ -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, .. } => {