The specs for the lnaddress are really confusing. #675
Replies: 1 comment
-
|
I wonder if anyone even checks for method="keysend"? It should be removed from the spec and we should just assume anything with type="node" means keysend. An lnaddress using the options file can return lnurlp and/or keysend information. Unfortunately, like you discovered, the options file isn't actually part of the LNURL spec. It's something that PC20 created in hopes that it would be merged into the LNURL spec at some point. The choices so far for knowing if there's an options well-known file is to either maintain a whitelist (like Oscar is doing with Podpay) or check the options file first and fallback to the standard lnurlp file. It would be nice if the spec could say which one to check rather than having to guess. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Consider this value block.
Two different types for the recipient. Okay, this seems legit, but
lnaddressmay only returnlnulpfor it's option. So, my concern is, we have inpodcast:valueamethodofkeysendand anvalueRecipientwith atypeoflnaddressthat may only returnlnurlp. Seems a little bit confusing to me.Also, for a 'type' of 'lnaddress', my understanding is the app uses that to convert to the uri
https://strike.me/.well-known/lnurlp/adam_txfzikfutr/options, which should return a list of payment options.However,
https://strike.me/.well-known/lnurlp/adam_txfzikfutr/optionsreturns a 404. So, the app would do what the spec says and get a 404, which I guess means their is no option, so if anlnaddressis present try the option first, and if their isn't an option fall back to something like this?https://strike.me/.well-known/lnurlp/adam_txfzikfutr. More confusion.And in this particular case, without the
optionsthis address is actually anlnurlp, so thetypewould more approriately belnurlpinstead oflnaddress, so we have amethodofkeysendwith alnurlpas thetypefor thevalueRecipient, but it's typed as alnaddress. How are hosts suppose to figure out for the podcasters (because we know the podcaster won't know) ifadam_txfzikfutr@strike.meis anlnaddressto return an option, orlnurlp? And how are apps suppose to know if it's anlnaddressso fetch the option, or anlnurlpso fetch the callback. I mean we all sort of know what we're doing, and this is confusing.We're asking the apps to transition over in short order, so we should really try to clarify what exactly the hosts need to do to mitigate the changes and how the apps are expected to understand and implement the new
lnaddressand differentiate betweenlnaddressandlnurlpBeta Was this translation helpful? Give feedback.
All reactions