Skip to content

pi: handle lud-17 lnurl URIs#10575

Open
f321x wants to merge 3 commits intospesmilo:masterfrom
f321x:lnurlw_prefix
Open

pi: handle lud-17 lnurl URIs#10575
f321x wants to merge 3 commits intospesmilo:masterfrom
f321x:lnurlw_prefix

Conversation

@f321x
Copy link
Copy Markdown
Member

@f321x f321x commented Apr 10, 2026

LNURL LUD-17 is an alternative scheme for lnurl urls which formats the urls in cleartext with a lnurlX:// scheme prefix instead of bech32 encoding them.
Adding this is simple as we already support lnurl and makes Electrum compatible e.g. with Boltcards.

@f321x f321x changed the title pi: handle lud-17 encoded lnurl URIs pi: handle lud-17 lnurl URIs Apr 10, 2026
Comment thread electrum/gui/qml/qeapp.py
Comment on lines +239 to +241
if scheme == BITCOIN_BIP21_URI_SCHEME \
or scheme == LIGHTNING_URI_SCHEME \
or scheme in SUPPORTED_LNURL_SCHEMES:
Copy link
Copy Markdown
Member

@SomberNight SomberNight Apr 11, 2026

Choose a reason for hiding this comment

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

do we want to handle these URI schemes also in the desktop Qt GUI?

(related 016c8b5)


edit: "maybe later" is a sensible answer, just asking

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Sure, why not, i didn't consider that we register URI handlers on Desktop as well, your comment from 016c8b5 was helpful there.
Rebased them into ef702d7

f321x added 3 commits April 13, 2026 09:30
LNURL-W/P can also be encoded in lud-17 form instead of bech32.
https://github.com/lnurl/luds/blob/luds/17.md
e.g.
lnurlw://example.com/api/test123
lnurlp://example.com/api/test123
The RE_EMAIL and RE_DOMAIN regexes matched the '|' character
which is probably not what they should do.
On install we register the URIs for bitcoin, lightning, lnurlp and lnurlw
in the registry but on uninstall we would only remove bitcoin again.
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