Skip to content

BOLT12: Allow to request a BOLT11 invoice#4641

Closed
tnull wants to merge 3 commits into
lightningdevkit:mainfrom
tnull:2026-05-bolt11on12
Closed

BOLT12: Allow to request a BOLT11 invoice#4641
tnull wants to merge 3 commits into
lightningdevkit:mainfrom
tnull:2026-05-bolt11on12

Conversation

@tnull

@tnull tnull commented May 28, 2026

Copy link
Copy Markdown
Contributor

Draft implementation of lightning/bolts#1336

tnull added 3 commits May 26, 2026 17:16
Advertise and encode the request marker for compatible pathless offers so payers can ask for a BOLT 11 invoice response.

Co-Authored-By: HAL 9000
Define the BOLT 11 invoice response message so offer replies can carry a BOLT 11 invoice using the assigned BOLT 12 TLV type.

Move async payment held-HTLC messages into the experimental async range so onion message dispatch remains unambiguous.

Co-Authored-By: HAL 9000
Wire ChannelManager and outbound payment state so BOLT 11 invoice responses to compatible offers are generated, recognized, and paid once.

Co-Authored-By: HAL 9000
@ldk-reviews-bot

ldk-reviews-bot commented May 28, 2026

Copy link
Copy Markdown

👋 Hi! This PR is now in draft status.
I'll wait to assign reviewers until you mark it as ready for review.
Just convert it out of draft status when you're ready for review!

@tnull tnull marked this pull request as draft May 28, 2026 09:52
@ldk-reviews-bot

Copy link
Copy Markdown

Hi @tnull,

Thanks for your contributions to rust-lightning!

After too many struggles with bugs, outages, contributor bans, and, finally, a multi-week CI ban, the rust-lightning project is moving off of GitHub for day-to-day development.

You can still file issues and access the git tree here, but PRs will now take place exclusively at https://git.rust-bitcoin.org/. As such, this PR has been migrated to https://git.rust-bitcoin.org/lightningdevkit/rust-lightning/pulls/4641

If you log in using GitHub (or otherwise link your GitHub account from https://git.rust-bitcoin.org/user/settings/security), ownership of your PRs, issues, and comments will automatically transfer. To push updates to this PR, you'll need to use git push git@gitea-ssh.bitcoin.ninja:lightningdevkit/rust-lightning YOUR_LOCAL_COMMIT_OR_BRANCH:tnull/2026-05-bolt11on12. This may require a permissions change - if it doesn't work initially just leave a comment and we'll get you access.

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.

2 participants