mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-23 00:45:53 -05:00
Full history
This commit is contained in:
parent
f3a2356484
commit
9c7a22d714
28
37.md
Normal file
28
37.md
Normal file
|
@ -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", "<kind_1_event_id>"]
|
||||
],
|
||||
"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`
|
Loading…
Reference in New Issue
Block a user