Skip to content

Commit 6d62d5d

Browse files
committed
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.
1 parent a8acbe7 commit 6d62d5d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning/src/offers/invoice.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,9 @@ impl Bolt12Invoice {
475475
///
476476
/// Blinded paths provide recipient privacy by obfuscating its node id. Note, however, that this
477477
/// privacy is lost if a public node id is used for [`Bolt12Invoice::signing_pubkey`].
478+
///
479+
/// This is not exported to bindings users as slices with non-reference types cannot be ABI
480+
/// matched in another language.
478481
pub fn payment_paths(&self) -> &[(BlindedPayInfo, BlindedPath)] {
479482
&self.contents.fields().payment_paths[..]
480483
}

0 commit comments

Comments
 (0)