From 6d62d5d021ae877eab27a78a3628e71be211a028 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Wed, 19 Jul 2023 20:02:10 +0000 Subject: [PATCH] No-export un-exportable types in BOLT12 module We missed one method that now cannot be bindings exported - the `payment_paths` method, as it returns a slice of objects, which cannot be supported in bindings. --- lightning/src/offers/invoice.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lightning/src/offers/invoice.rs b/lightning/src/offers/invoice.rs index 279e31dd..c3d4500a 100644 --- a/lightning/src/offers/invoice.rs +++ b/lightning/src/offers/invoice.rs @@ -475,6 +475,9 @@ impl Bolt12Invoice { /// /// Blinded paths provide recipient privacy by obfuscating its node id. Note, however, that this /// privacy is lost if a public node id is used for [`Bolt12Invoice::signing_pubkey`]. + /// + /// This is not exported to bindings users as slices with non-reference types cannot be ABI + /// matched in another language. pub fn payment_paths(&self) -> &[(BlindedPayInfo, BlindedPath)] { &self.contents.fields().payment_paths[..] } -- 2.30.2