nips/37.md

28 lines
638 B
Markdown
Raw Normal View History

2024-02-26 10:44:07 -05:00
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", "<kind_1_event_id>"]
],
"content": "this is a modified note",
// ...other fields
}
```
2024-02-26 10:53:21 -05:00
Clients SHOULD render the `.content` of the most recent `kind:1010` by `created_at`
2024-02-26 10:44:07 -05:00
Clients MUST check if the pubkey of the `kind:1010` is the same as the referenced `kind:1`