Skip to content

lud-17 fallback scheme.#94

Open
fiatjaf wants to merge 1 commit into
ludsfrom
lud-17-fallback-scheme
Open

lud-17 fallback scheme.#94
fiatjaf wants to merge 1 commit into
ludsfrom
lud-17-fallback-scheme

Conversation

@fiatjaf

@fiatjaf fiatjaf commented Sep 14, 2021

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread 17.md

If someone sees a QR code printed on a place, for example, they may know it's an LNURL thing and scan directly with their Lightning wallet, but they may also think it is a normal QR code or they don't even have a Lightning wallet, so they scan it and try to open it on their web browser. In that case the `SERVICE` may handle the request, check for the presence of `Accept: text/html` header and return a webpage with instructions.

This remains entirely optional and `SERVICE` should only use `https://` in printed QR codes if it is also willing to return a fallback HTML page.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does this advice refer only to the case where the URL is encoded directly as a QR code and not when encoded using bech32 (e.g. "lnurl1...") then encoded as QR code?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes.

@augustresende

augustresende commented May 16, 2022

Copy link
Copy Markdown

@fiatjaf Maybe we can improve this fallback for QR Codes keeping LUD-1 fallback scheme

like this

https://someendpoint.com/lnurl/123456?lightning=LNURL1DP68GURN8GHJ7UM0D4JK2MNYWPHKJMN59E3K7MF0D3H82UNV9UCNYVE5X5MQEQFRPL < (that is this same previous link)

This string encoded as QR code can work with old (only LUD-1 without change) and new (LUD-17) implementations without any problem

@fiatjaf

fiatjaf commented May 16, 2022

Copy link
Copy Markdown
Collaborator Author

I like this. @augustoresende's suggestions covers all cases.

Services can choose to either do the Accept header magic or append the LUD-01 LNURL to the https:// URL -- or both.

@augustresende

Copy link
Copy Markdown

When we can merge this? @fiatjaf @hsjoberg

@dni

dni commented Mar 13, 2025

Copy link
Copy Markdown
Collaborator

bump

@andrerfneves andrerfneves added lud-extension Adds a field or behavior to an existing LUD ready Author considers it final, needs review/merge decision labels May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lud-extension Adds a field or behavior to an existing LUD ready Author considers it final, needs review/merge decision

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants