mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-23 00:45:53 -05:00
Added permission example
This commit is contained in:
parent
3a09d4aa7c
commit
32bd6de504
6
83.md
6
83.md
|
@ -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.
|
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
|
### Creating an invoice
|
||||||
|
|
||||||
`service client` sends `create_invoice` event:
|
`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
|
### Checking a payment in/out
|
||||||
|
|
||||||
`service client` sends `check_payment` event:
|
`service client` sends `check_payment` event:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user