Added permission example

This commit is contained in:
ben 2023-04-12 13:39:33 +01:00
parent 3a09d4aa7c
commit 32bd6de504

6
83.md
View File

@ -22,6 +22,10 @@ There are two simple clients sending json over [NIP04](https://github.com/nostr-
2. `service client`: Built into service/client that wants wallet functions.
### Permissions
In `funding source client` nostr pubkeys used by `service client` are given and permissions granted (such as `read`/`create_invoice_only`/`pay_invoices`)
### Creating an invoice
`service client` sends `create_invoice` event:
@ -60,6 +64,8 @@ There are two simple clients sending json over [NIP04](https://github.com/nostr-
}
```
`funding source client` checks the pubkey has permission and attempts to pay the invoice.
### Checking a payment in/out
`service client` sends `check_payment` event: