it’s both just an implementation detail on the wallet side, isn’t it?
the public messages also must be processed and the wallet must make sure it only accepts make_invoice calls?
I understand the thinking, NWC would just be already there and can be used
It depends on what you're calling the "wallet". AlbyGo appears to be a wallet, but isn't from this perspective. AlbyHub is what controls the funds and makes invoices.
Ultimately, NWC code that responds to "make_invoice" should be updated to make public connections that can only make invoices. Then zap capable apps would need to look for a field next to LNURL and use this to make the no-secret make_invoice call
yep,
I just wonder if it is really worth to have this special case.
why not have a NWC connection string in there (wouldn’t that also increase privacy actually?)
clients can easily validate the connection before adding it.
any current SDK would work and clients have NWC code anyway.
If something goes wrong and even one person loses their entire wallet by posting a real NWC string to their profile, saving a few lines of code will have been foolish. NWC strings themselves are already dangerous because they're a bearer token - everything should be using NWA anyway, and that wouldn't work for receiving zaps
I just don’t really see a difference that big actually.
it’s either way some lines of code somewhere that processes a nostr message.
but yea, people do crazy things… people loose sats by posting their seed phrases everywhere.
either way the nostr client could easily protect them.
It's a few lines at the wallet, or more lines in every nostr client
why more lines?
the wallet would implement a completely new way for the messages.
I'd rather open that PR myself than have anyone lose funds
which PR?
anyway let’s see if it happens.
still need to convince more wallets to implement NWC.
I think that I'm on to something with https://deposits.ynniv.com. If it works out, the next billion wallets will be NWC. So... I'm not worried about adoption
This is also why I'm interested in LNURL functionality natively available from NWC
Thread collapsed
Thread collapsed
Thread collapsed
Thread collapsed
Thread collapsed
Thread collapsed
Thread collapsed
Thread collapsed
Thread collapsed
Thread collapsed