Skip to content

Commit

Permalink
Support Bolt12Invoice::payment_paths in bindings
Browse files Browse the repository at this point in the history
Lack of bindings support was because the method used to return a slice
of tuples, it seems. Now that it returns &[BlindedPaymentPath], bindings
should be possible given that they can be generated for
Bolt12Invoice::message_paths.
  • Loading branch information
jkczyz committed Jan 10, 2025
1 parent 42cc4e7 commit 93d00b3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lightning/src/offers/invoice_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,6 @@ macro_rules! invoice_accessors_common { ($self: ident, $contents: expr, $invoice
/// 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
#[doc = concat!("[`", stringify!($invoice_type), "::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) -> &[BlindedPaymentPath] {
$contents.payment_paths()
}
Expand Down

0 comments on commit 93d00b3

Please sign in to comment.