Mark several types no-export which should be exported eventually 2023-07-0.0.116-bindings
authorMatt Corallo <git@bluematt.me>
Wed, 19 Jul 2023 20:09:23 +0000 (20:09 +0000)
committerMatt Corallo <git@bluematt.me>
Sat, 22 Jul 2023 01:59:02 +0000 (01:59 +0000)
lightning/src/events/bump_transaction.rs
lightning/src/ln/features.rs
lightning/src/offers/invoice.rs
lightning/src/sign/mod.rs

index 5963da8e9f213efd023a21f6570369b8775ee2a5..02f651c34d6d66191f9922d9e9078a8fe3a88b8d 100644 (file)
@@ -392,6 +392,8 @@ impl Utxo {
        }
 
        /// Returns a `Utxo` with the `satisfaction_weight` estimate for a P2WPKH nested in P2SH output.
+       ///
+       /// This is not exported to bindings users as WPubkeyHash is not yet exported
        pub fn new_nested_p2wpkh(outpoint: OutPoint, value: u64, pubkey_hash: &WPubkeyHash) -> Self {
                let script_sig_size = 1 /* script_sig length */ +
                        1 /* OP_0 */ +
@@ -408,6 +410,8 @@ impl Utxo {
        }
 
        /// Returns a `Utxo` with the `satisfaction_weight` estimate for a SegWit v0 P2WPKH output.
+       ///
+       /// This is not exported to bindings users as WPubkeyHash is not yet exported
        pub fn new_v0_p2wpkh(outpoint: OutPoint, value: u64, pubkey_hash: &WPubkeyHash) -> Self {
                Self {
                        outpoint,
index 5de383b1f4469273207441892a90d1d2c063494d..e003d9402d8a6d17651840db6b2478561d741a9f 100644 (file)
@@ -432,6 +432,7 @@ pub struct Features<T: sealed::Context> {
        mark: PhantomData<T>,
 }
 
+/// This is not exported to bindings users but probably should be.
 impl<T: sealed::Context, Rhs: Borrow<Self>> core::ops::BitOrAssign<Rhs> for Features<T> {
        fn bitor_assign(&mut self, rhs: Rhs) {
                let total_feature_len = cmp::max(self.flags.len(), rhs.borrow().flags.len());
@@ -442,6 +443,7 @@ impl<T: sealed::Context, Rhs: Borrow<Self>> core::ops::BitOrAssign<Rhs> for Feat
        }
 }
 
+/// This is not exported to bindings users but probably should be.
 impl<T: sealed::Context> core::ops::BitOr for Features<T> {
        type Output = Self;
 
index 3681f442427c28cdadee24c9d8e5f3a706e95eb6..5b898ee69a7573b5528c2be8c8b1fbf060f53a7b 100644 (file)
@@ -586,6 +586,8 @@ impl Bolt12Invoice {
        }
 
        /// Signature of the invoice verified using [`Bolt12Invoice::signing_pubkey`].
+       ///
+       /// This is not exported to bindings users as Signature is not yet mapped.
        pub fn signature(&self) -> Signature {
                self.signature
        }
index a71bdae88768c1b7f97da626af9291589205e736..bc8c305df086ad6a584baee5c5ddcefce250f9e8 100644 (file)
@@ -225,6 +225,8 @@ 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.
        pub fn to_psbt_input(&self) -> bitcoin::psbt::Input {
                match self {
                        SpendableOutputDescriptor::StaticOutput { output, .. } => {