diff --git a/37.md b/37.md index d432020f..e611f608 100644 --- a/37.md +++ b/37.md @@ -7,16 +7,16 @@ Editable Short Notes `draft` `optional` -This NIP allows `.content` modification of `kind:1` short notes while keeping a history of all changes. +This NIP allows `.content` edits of `kind:1` short notes with history of changes. -`kind:1010` stores the updated content with an `e` tag pointing back to the `kind:1` id. +`kind:1010` stores the updated content with an `e` tag pointing back to the original `kind:1`. ```js { "kind": 1010, "pubkey": "<32-bytes hex-encoded public key of the event creator>", "tags": [ - ["e", ""] + ["e", "", "relay"] ], "content": "this is a modified version of the original content", // ...other fields @@ -31,7 +31,9 @@ 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. +`kind:1010`s that are not signed by the author of the `e`-tagged event are considered proposals to edit. + +A `p` tag notifies the author of a new edit proposal. ```js { @@ -47,4 +49,4 @@ Clients MAY present a history of changes over time. } ``` -To accept a proposal, the author signs a new `kind:1010` event with a copy of the `.content`. \ No newline at end of file +To accept the proposal, the author MUST sign a new `kind:1010` event with a copy of the proposal's `.content`. \ No newline at end of file diff --git a/README.md b/README.md index 3273ab06..b5503c94 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos - [NIP-31: Dealing with Unknown Events](31.md) - [NIP-32: Labeling](32.md) - [NIP-36: Sensitive Content](36.md) +- [NIP-37: Editable Short Notes](37.md) - [NIP-38: User Statuses](38.md) - [NIP-39: External Identities in Profiles](39.md) - [NIP-40: Expiration Timestamp](40.md) @@ -99,6 +100,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos | `42` | Channel Message | [28](28.md) | | `43` | Channel Hide Message | [28](28.md) | | `44` | Channel Mute User | [28](28.md) | +| `1010` | Content Edits | [37](37.md) | | `1021` | Bid | [15](15.md) | | `1022` | Bid confirmation | [15](15.md) | | `1040` | OpenTimestamps | [03](03.md) |