From e260b2e7854e88fea94975277bef853b5d60ee2e Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Sat, 2 Mar 2024 11:15:52 -0500 Subject: [PATCH] Added Proposed Edits to the spec. --- 37.md | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/37.md b/37.md index 45d09962..d34dd5e4 100644 --- a/37.md +++ b/37.md @@ -7,7 +7,7 @@ Editable Short Notes `draft` `optional` -This NIP allows `.content` modification on `kind:1` short notes while keeping a history of all changes. +This NIP allows `.content` modification of `kind:1` short notes while keeping a history of all changes. `kind:1010` stores the updated content with a `e` tag pointing back to the `kind:1` id. @@ -27,4 +27,24 @@ Clients MUST check if the pubkey of the `kind:1010` is the same as the reference Clients SHOULD render the `.content` of the most recent `kind:1010` by `created_at` -Clients MAY present a history of changes over time. \ No newline at end of file +Clients MAY present a history of changes over time. + +# Collaboration + +`kind:1010` that are not signed by the author of the `e`-tagged event are considered proposals to change. + +```js +{ + "kind": 1010, + "pubkey": "<32-bytes hex-encoded public key of the event creator>", + "tags": [ + ["e", ""] + ["p", ""] // notifying the author + ["summary", ""] + ], + "content": "this is the proposed change from a third-party to the author", + // ...other fields +} +``` + +To accept a proposal, the author signs a new `kind:1010` event with a copy of the `.content`. \ No newline at end of file