Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add destination pubkey and bolt12 invoice to payment details #649

Merged
merged 2 commits into from
Jan 10, 2025

Conversation

dangeross
Copy link
Collaborator

This PR:

  • adds the invoice's destination pubkey (bolt11: payee pubkey, bolt12: signing pubkey) to the payment details as destination_pubkey
  • renames the payment detail's bolt11 to invoice to expose both bolt11 and bolt12 invoices

Depends on breez/breez-sdk-greenlight#1156

Fixes #646
Fixes #648

Copy link
Contributor

@danielgranhao danielgranhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - only one nit

Comment on lines 1880 to 1881
#[macro_export]
macro_rules! get_invoice_destination_pubkey {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the motivation to use a macro here? Seems like a function would work

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, fixed 18a7025

@erdemyerebasmaz erdemyerebasmaz merged commit 50cb8be into main Jan 10, 2025
9 checks passed
@erdemyerebasmaz erdemyerebasmaz deleted the savage-destination-pubkey branch January 10, 2025 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Node ID is missing from payment details on LN payments Store Bolt12 invoice on LN payment details
5 participants