Added encryption description for encrypted job feedback events

This commit is contained in:
believethehype 2023-11-28 20:16:29 +01:00 committed by GitHub
parent 6de35f9e6a
commit 53510fcd24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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. * 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 way as Job Requests, this param data will be encrypted and added to the `content` field and `p` tag should be present
### Job feedback status ### Job feedback status
| status | description | | status | description |