lnurl / luds

lnurl specifications
584 stars 138 forks source link

LUD-04 Spec Addition: k1 value should be optional and trigger a negotiation step like LUD-06. #229

Open cmdruid opened 11 months ago

cmdruid commented 11 months ago

In the current LUD-04 spec, it is mandatory that the k1 value is presented up-front.

There are two main problems with this approach that I have run into repeatedly:

I think that the LUD-04 flow can be upgraded to be more like LUD-06, without breaking backwards-compatibility.

Example of the new LUD-04:

With this simple change, I can present users with a static QR code for authentication, and better negotiate the k1 value for them to sign.

This change would also allow the auth spec to be upgraded more easily in the future, as the negotiation step could include different signature types, derivation paths, etc.

I am submitting this change as an issue to garner support. I would also like to create a PR for LUD-04 which would include the new change, plus update the current formatting of LUD-04 so that it is easier to read.

I would find this change incredibly useful, plus it would make lnurl auth more robust. Please let me know what you think. Thank you.