Merge bc6c84af6b5cd51630641835da7cc31f265fb623 into 0619f370bca3485bb9c5870bc2defa03c7c3d10e

This commit is contained in:
dbth 2025-03-20 11:51:41 +08:00 committed by GitHub
commit 0158aa038f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

17
90.md
View File

@ -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 |