mirror of
https://github.com/nostr-protocol/nips.git
synced 2025-03-25 17:21:52 +01:00
Merge bc6c84af6b5cd51630641835da7cc31f265fb623 into 0619f370bca3485bb9c5870bc2defa03c7c3d10e
This commit is contained in:
commit
0158aa038f
17
90.md
17
90.md
@ -167,6 +167,23 @@ Service providers can give feedback about a job back to the customer.
|
||||
|
||||
* NOTE: If the input params requires input to be encrypted, then `content` field will have encrypted payload with `p` tag as key.
|
||||
|
||||
* ## Encrypted Params
|
||||
|
||||
The DVM might reply with an ecrypted Job Feedback. If `content` would have been provided originally, it is replaced by a `content` tag instead.
|
||||
|
||||
```json
|
||||
[
|
||||
["content", "Please pay 5000 sats"],
|
||||
["status", "payment-required"],
|
||||
["amount", "5000", "lnbc501U1.."],
|
||||
["e", "23423413124234"]
|
||||
]
|
||||
|
||||
```
|
||||
|
||||
In the same manner as Job Requests, this param data will be encrypted and added to the `content` field and `p` tag should be present. Encryption for private tags will use [NIP-04 - Encrypted Direct Message encryption](https://github.com/nostr-protocol/nips/blob/master/04.md), using the user's private and service provider's public key for the shared secret
|
||||
|
||||
|
||||
### Job feedback status
|
||||
|
||||
| status | description |
|
||||
|
Loading…
x
Reference in New Issue
Block a user