From c1d5ef6859aa03cbc5257a29b21e4b740e6aa0c4 Mon Sep 17 00:00:00 2001 From: Dustin Dannenhauer Date: Thu, 11 Jan 2024 21:00:12 +0000 Subject: [PATCH] Update 90.md to use kind:7 for reactions --- 90.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/90.md b/90.md index 91455e6f..b48a36bb 100644 --- a/90.md +++ b/90.md @@ -181,21 +181,23 @@ Any job feedback event MIGHT include results in the `.content` field, as describ ## Customer feedback -Customers can give feedback about a job result back to the service provider. +Customers can give feedback about a job result back to the service provider via a `kind:7` from [NIP-25 - Reactions](https://github.com/nostr-protocol/nips/blob/8331354947f2d577e13eb5da4a56133071cb1019/25.md) with a tag that specifically refers to the ```json { - "kind": 8000, - "content": "", + "kind": 7, + "content": "", "tags": [ - ["e", "", ""], - ["p", ""], + ["e", ""], + ["p", ""], + ["k", "< (optional) the kind of the note that the DVM responded with>"] ], - ... + "pubkey": "79c2cae114ea28a981e7559b4fe7854a473521a8d22a66bbab9fa248eb820ff6", + "created_at": 1682790000 } ``` -* `content`: Feedback string to the service provider. Could be "liked", "disliked", a score between an arbitrary range, etc. The representation of the feedback should be up to the decision of the client that enables the user to interact with the service provider. DVMs may specify how they would like feedback when announcing themselves via [NIP-89 - Recommended Application Handlers](https://github.com/nostr-protocol/nips/blob/master/89.md). +* `content`: Feedback string to the service provider. Could be "liked", "disliked", a score between an arbitrary range, a text string such as "worked but took too long", etc. but should be in accordance with [NIP-25 - Reactions](https://github.com/nostr-protocol/nips/blob/8331354947f2d577e13eb5da4a56133071cb1019/25.md) The representation of the feedback should be up to the decision of the client that enables the user to interact with the service provider. DVMs may specify how they would like feedback when announcing themselves via [NIP-89 - Recommended Application Handlers](https://github.com/nostr-protocol/nips/blob/master/89.md). * NOTE: If the input params requires input to be encrypted, then `content` field will have encrypted payload with `p` tag as key.