From 9c7a22d71483d5491fb7c9dc9b21647368ceefe2 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Mon, 26 Feb 2024 10:44:07 -0500 Subject: [PATCH] Full history --- 37.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 37.md diff --git a/37.md b/37.md new file mode 100644 index 00000000..39f41304 --- /dev/null +++ b/37.md @@ -0,0 +1,28 @@ + +NIP-37 +====== + +Editable Short Notes +-------------------- + +`draft` `optional` + +This NIP adds full-history content modification directly to `kind:1` short notes. + +`kind:1010` stores the updated content with a `n` tag pointing back to the `kind:1` id. + +```js +{ + "kind": 1010, + "pubkey": "<32-bytes hex-encoded public key of the event creator>", + "tags": [ + ["n", ""] + ], + "content": "this is a modified note", + // ...other fields +} +``` + +Clients SHOULD render the most recent modification by `created_at` + +Clients MUST check if the pubkey of the `kind:1010` is the same as the referenced `kind:1` \ No newline at end of file