adds relay hint

adds references in the readme
adds notification ptag for proposals
improves wording
This commit is contained in:
Vitor Pamplona 2024-03-29 11:19:04 -04:00
parent 2519d7d8a3
commit 2f0b39ea7f
2 changed files with 9 additions and 5 deletions

12
37.md
View File

@ -7,16 +7,16 @@ Editable Short Notes
`draft` `optional` `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 ```js
{ {
"kind": 1010, "kind": 1010,
"pubkey": "<32-bytes hex-encoded public key of the event creator>", "pubkey": "<32-bytes hex-encoded public key of the event creator>",
"tags": [ "tags": [
["e", "<kind_1_event_id>"] ["e", "<kind_1_event_id>", "relay"]
], ],
"content": "this is a modified version of the original content", "content": "this is a modified version of the original content",
// ...other fields // ...other fields
@ -31,7 +31,9 @@ Clients MAY present a history of changes over time.
# Collaboration # 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 ```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`. To accept the proposal, the author MUST sign a new `kind:1010` event with a copy of the proposal's `.content`.

View File

@ -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-31: Dealing with Unknown Events](31.md)
- [NIP-32: Labeling](32.md) - [NIP-32: Labeling](32.md)
- [NIP-36: Sensitive Content](36.md) - [NIP-36: Sensitive Content](36.md)
- [NIP-37: Editable Short Notes](37.md)
- [NIP-38: User Statuses](38.md) - [NIP-38: User Statuses](38.md)
- [NIP-39: External Identities in Profiles](39.md) - [NIP-39: External Identities in Profiles](39.md)
- [NIP-40: Expiration Timestamp](40.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) | | `42` | Channel Message | [28](28.md) |
| `43` | Channel Hide Message | [28](28.md) | | `43` | Channel Hide Message | [28](28.md) |
| `44` | Channel Mute User | [28](28.md) | | `44` | Channel Mute User | [28](28.md) |
| `1010` | Content Edits | [37](37.md) |
| `1021` | Bid | [15](15.md) | | `1021` | Bid | [15](15.md) |
| `1022` | Bid confirmation | [15](15.md) | | `1022` | Bid confirmation | [15](15.md) |
| `1040` | OpenTimestamps | [03](03.md) | | `1040` | OpenTimestamps | [03](03.md) |