Skip to content

Return payment hash & secret in Bolt11 and offer id in Bolt12 receive responses#163

Merged
valentinewallace merged 2 commits intolightningdevkit:mainfrom
benthecarman:bolt11-recv-ret
Mar 20, 2026
Merged

Return payment hash & secret in Bolt11 and offer id in Bolt12 receive responses#163
valentinewallace merged 2 commits intolightningdevkit:mainfrom
benthecarman:bolt11-recv-ret

Conversation

@benthecarman
Copy link
Collaborator

Before you would create an invoice and then need to decode it to get the payment hash/secret to then match it to a PaymentReceived event. Now we'll include those in the Bolt11ReceiveResponse to make it easier. Does the same for bolt 12 and the offer id

@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Mar 20, 2026

I've assigned @valentinewallace as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

Before you would create an invoice and then need to decode it to get the
payment hash/secret to then match it to a PaymentReceived event. Now
we'll include those in the Bolt11ReceiveResponse to make it easier.
Same motivation as the bolt11 change, allow us to track bolt 12 receives
without having to decode the offer.
@valentinewallace valentinewallace merged commit 7f28543 into lightningdevkit:main Mar 20, 2026
8 checks passed
@benthecarman benthecarman deleted the bolt11-recv-ret branch March 20, 2026 20:41
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.

3 participants