ACINQ / phoenix

Phoenix is a self-custodial Bitcoin wallet using Lightning to send/receive payments.
https://phoenix.acinq.co
Apache License 2.0
676 stars 97 forks source link

Support for non-standard lightning addresses #264

Open dpad85 opened 2 years ago

dpad85 commented 2 years ago

Both the Android and iOS apps fail to read non-"standard" lightning address, for example addresses with Chinese domain names, such as:

...@比特幣.組織.香港

robbiehanson commented 2 years ago

Dev notes:

This gets translated into a URL: https://比特幣.組織.香港/.well-known/lnurlp/username

If you paste ^this^ into a browser, it will work, and properly download the JSON. (Obviously need to replace "username" with a valid username in their system.) But it won't work in something like curl. Nor will it work in Kotlin.

This is because the domain needs to be converted to punycode: https://xn--zvt121a27e.xn--uc0atv.xn--j6w193g/.well-known/lnurlp/username

(Modern browsers perform the punycode conversion automatically in the background.)

robbiehanson commented 2 years ago

Dev notes: