believethehype / nostdress

Lightning addresses server based on satdress. Adapted to work with Nostr features (NIP05, NIP57)
MIT License
46 stars 14 forks source link

NWC backend #30

Open frnandu opened 2 months ago

frnandu commented 2 months ago

Would be cool to have the possibility of using a NWC backend

https://nwc.dev/

believethehype commented 2 months ago

Hi,

I was considering this a lot some time ago, but by the nature of nostdress, it is a public server that requires invoice keys which has no real risk of funds lost for users. NWC on the other hand requires admin keys (to send) so anyone hosting a nostdress server would get access to these keys which is really bad practise. If you run it privately for yourself only, its maybe a different thing. But in order to send I would recommend using albys nwc implementation which is also open source. Or check my fork of it which also supports lnbits. https://github.com/believethehype/nostr-wallet-connect

frnandu commented 2 months ago

What I had in mind is to use NWC as a client requesting the command make_invoice which doesn't require access to funds on the NWC wallet implementation. This would allow for connecting nostdress to either NWC implementation that supports that command and provide self sovereign LN address.