From 53510fcd249ea657257d4cb509edc94676ae0b46 Mon Sep 17 00:00:00 2001 From: believethehype Date: Tue, 28 Nov 2023 20:16:29 +0100 Subject: [PATCH] Added encryption description for encrypted job feedback events --- 90.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/90.md b/90.md index 6017c98c..e25384a8 100644 --- a/90.md +++ b/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 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 | status | description |