ACINQ / phoenix

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

Receive to LN Address in Phoenix #536

Open alltheseas opened 6 months ago

alltheseas commented 6 months ago

user story

As a Phoenix wallet user who receives sats, I would like a way to generate a lightning address in app, so that I can more easily and readily share this easy to write down, share, and remember information with others who would like to send me sats.

acceptance criteria

  1. there is a method to generate a LN address in Phoenix app (e.g. dpad85@acinq.co; HappyGiraffe21@acinq.co etc.)
  2. there is a way to see my LN address in app
  3. I can easily tap copy on the LN address, where the LN address is saved in device memory for easy sharing to other apps

implementation details

https://lightningaddress.com/ https://github.com/andrerfneves/lightning-address/blob/master/README.md https://github.com/andrerfneves/lightning-address

related

[Improved] Nostr integration https://github.com/ACINQ/phoenix/issues/503

alltheseas commented 6 months ago

Tangential: https://github.com/ACINQ/phoenix/issues/264

dpad85 commented 6 months ago

We're planning to support that through https://github.com/bitcoin/bips/pull/1551 + BOLT12.

This is a bit different from the current Lightning address implementations, which rely on LNURL-pay + an http server and have some drawbacks. You can read more about this here: https://lists.linuxfoundation.org/pipermail/lightning-dev/2023-November/004204.html, as well as on the BIP linked above.