Update 90.md to use kind:7 for reactions

This commit is contained in:
Dustin Dannenhauer 2024-01-11 21:00:12 +00:00 committed by GitHub
parent 0efe7711a9
commit c1d5ef6859
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

16
90.md
View File

@ -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": "<empty-or-payload>",
"kind": 7,
"content": "<content>",
"tags": [
["e", "<job-request-id>", "<relay-hint>"],
["p", "<customer's-pubkey>"],
["e", "<the id of the note that the DVM responded with>"],
["p", "<the pubkey of the note that the DVM responded with>"],
["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.