Update Auth protocol description, add example values, fix bug.#249
Update Auth protocol description, add example values, fix bug.#249michaelWuensch wants to merge 2 commits intolnurl:ludsfrom
Conversation
|
Just a short comment before looking into this further, the |
|
Ah, okay. |
|
@hsjoberg This means: References: Alby: Balance of Satoshi: Clams: |
|
Thank you so much for your research @michaelWuensch. |
Hi,
I am in the process of implementing LNURL Auth for BitBanana. It works and it gives the same linking key as Zeus for the same node.
During the process of implementations I stumbled upon some difficulties, that I now try to overcome with this PR so implementation for other users is easier.
First big thing I noticed is, that both Zeus and Blixt do NOT follow the spec.
In LUD-04 at step 2 it said canonical phrase is hashed one time before signing, but Zeus and Blixt hash it two times. (the called LND endpoint hashes it two times automatically, unless you explicitly tell it to only hash it once, which these wallets did not do.)
I now did the same and adapted the spec accordingly. I am unsure though how other wallets do it.
I further