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.
-
Consider this value block.
Two different types for the recipient. Okay, this seems legit, but
lnaddress
may only returnlnulp
for it's option. So, my concern is, we have inpodcast:value
amethod
ofkeysend
and anvalueRecipient
with atype
oflnaddress
that 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/options
returns 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 anlnaddress
is 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
options
this address is actually anlnurlp
, so thetype
would more approriately belnurlp
instead oflnaddress
, so we have amethod
ofkeysend
with alnurlp
as thetype
for 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) if[email protected]
is anlnaddress
to return an option, orlnurlp
? And how are apps suppose to know if it's anlnaddress
so fetch the option, or anlnurlp
so 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
lnaddress
and differentiate betweenlnaddress
andlnurlp
Beta Was this translation helpful? Give feedback.
All reactions