Skip to content

Support LNURL resolution via optional HTTP fallback#898

Draft
benthecarman wants to merge 1 commit intolightningdevkit:mainfrom
benthecarman:lnurl-unified
Draft

Support LNURL resolution via optional HTTP fallback#898
benthecarman wants to merge 1 commit intolightningdevkit:mainfrom
benthecarman:lnurl-unified

Conversation

@benthecarman
Copy link
Copy Markdown
Contributor

Closes #870

Add an enable_lnurl_resolution flag to HumanReadableNamesConfig that, when set, attaches an HTTPHrnResolver as a fallback to the configured BIP 353 / bLIP-32 resolver. The fallback is consulted only when the primary resolver returns an error, so it covers LN-Address recipients that don't publish a BIP 353 record and direct LNURL-pay links, while never shadowing a successful primary resolution.

Enabling this opts in to revealing our IP and payment target to the LNURL endpoint, so it defaults to off.

Co-developed with Claude Code (claude-opus-4-7).

Add an `enable_lnurl_resolution` flag to `HumanReadableNamesConfig`
that, when set, attaches an `HTTPHrnResolver` as a fallback to the
configured BIP 353 / bLIP-32 resolver. The fallback is consulted only
when the primary resolver returns an error, so it covers LN-Address
recipients that don't publish a BIP 353 record and direct LNURL-pay
links, while never shadowing a successful primary resolution.

Enabling this opts in to revealing our IP and payment target to the
LNURL endpoint, so it defaults to off.

Co-developed with Claude Code (claude-opus-4-7).
@benthecarman benthecarman requested a review from tnull May 4, 2026 16:33
@ldk-reviews-bot
Copy link
Copy Markdown

ldk-reviews-bot commented May 4, 2026

👋 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!

@TheBlueMatt
Copy link
Copy Markdown
Contributor

This feels like it belongs in bitcoin-payment-instructions.

@benthecarman benthecarman marked this pull request as draft May 4, 2026 16:56
@benthecarman
Copy link
Copy Markdown
Contributor Author

This feels like it belongs in bitcoin-payment-instructions.

opened rust-bitcoin/bitcoin-payment-instructions#23 however I still think we'd still want some of this unless we want to add a fallback to the dns resolver too

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.

Unified send doesn't support lnurl

3 participants