diff options
| -rw-r--r-- | 35.md | 25 | ||||
| -rw-r--r-- | README.md | 2 |
2 files changed, 27 insertions, 0 deletions
| @@ -0,0 +1,25 @@ | |||
| 1 | NIP-35 | ||
| 2 | ====== | ||
| 3 | |||
| 4 | Draft Events | ||
| 5 | ------------ | ||
| 6 | |||
| 7 | `draft` `optional` | ||
| 8 | |||
| 9 | This NIP defines kind `31234` as a private draft event for any other event kind. | ||
| 10 | |||
| 11 | The draft event is JSON-stringified, [NIP44-encrypted](44.md) to the owner's public key and placed inside the `.content` of the event. | ||
| 12 | |||
| 13 | An additional `k` tag identifies the kind of the draft event. | ||
| 14 | |||
| 15 | ```js | ||
| 16 | { | ||
| 17 | "kind": 31234, | ||
| 18 | "tags": [ | ||
| 19 | ["d", "<identifier>"], | ||
| 20 | ["k", "<kind of the draft event>"], | ||
| 21 | ], | ||
| 22 | "content": nip44Encrypt(JSON.stringify(draft_event)), | ||
| 23 | // other fields | ||
| 24 | } | ||
| 25 | ``` \ No newline at end of file | ||
| @@ -50,6 +50,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos | |||
| 50 | - [NIP-31: Dealing with Unknown Events](31.md) | 50 | - [NIP-31: Dealing with Unknown Events](31.md) |
| 51 | - [NIP-32: Labeling](32.md) | 51 | - [NIP-32: Labeling](32.md) |
| 52 | - [NIP-34: `git` stuff](34.md) | 52 | - [NIP-34: `git` stuff](34.md) |
| 53 | - [NIP-35: Draft Events](35.md) | ||
| 53 | - [NIP-36: Sensitive Content](36.md) | 54 | - [NIP-36: Sensitive Content](36.md) |
| 54 | - [NIP-38: User Statuses](38.md) | 55 | - [NIP-38: User Statuses](38.md) |
| 55 | - [NIP-39: External Identities in Profiles](39.md) | 56 | - [NIP-39: External Identities in Profiles](39.md) |
| @@ -167,6 +168,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos | |||
| 167 | | `30402` | Classified Listing | [99](99.md) | | 168 | | `30402` | Classified Listing | [99](99.md) | |
| 168 | | `30403` | Draft Classified Listing | [99](99.md) | | 169 | | `30403` | Draft Classified Listing | [99](99.md) | |
| 169 | | `30617` | Repository announcements | [34](34.md) | | 170 | | `30617` | Repository announcements | [34](34.md) | |
| 171 | | `31234` | Draft Event | [35](35.md) | | ||
| 170 | | `31922` | Date-Based Calendar Event | [52](52.md) | | 172 | | `31922` | Date-Based Calendar Event | [52](52.md) | |
| 171 | | `31923` | Time-Based Calendar Event | [52](52.md) | | 173 | | `31923` | Time-Based Calendar Event | [52](52.md) | |
| 172 | | `31924` | Calendar | [52](52.md) | | 174 | | `31924` | Calendar | [52](52.md) | |