getAlby / nostr-wallet-connect

Nostr Wallet Connect (NIP-47) application to allow apps to connect to your node
https://nwc.getalby.com
Apache License 2.0
103 stars 31 forks source link

Change how permissions work #189

Open rolznz opened 8 months ago

rolznz commented 8 months ago

In https://github.com/getAlby/nostr-wallet-connect/pull/178 when introducing pay_keysend we changed from 1 permission -> 1 method to 1 permission -> multiple methods for payments.

So it no longer really makes sense to tie permissions to individual methods, but more like scopes: "invoices:read", "invoices:create", "payments:send" etc. (Also on the user side: it makes no sense for most users to differentiate between keysend and normal payments)

There is now a naming issue, because keysend payments depend on the pay_invoice permission rather than the keysend one (which does not exist)

What needs to change