diff --git a/23.md b/23.md index 2586ac0c..28bd94f7 100644 --- a/23.md +++ b/23.md @@ -6,7 +6,9 @@ Long-form Content `draft` `optional` -This NIP defines `kind:30023` (an _addressable event_) for long-form text content, generally referred to as "articles" or "blog posts". `kind:30024` has the same structure as `kind:30023` and is used to save long form drafts. +This NIP defines `kind:30023` (an _addressable event_) for long-form text content, generally referred to as "articles" or "blog posts". + +Deprecated: `kind:30024` was used for long-form drafts (self-encrypted nip04, same format as `kind:30023`). The preferred way of doing long-form drafts is to use [NIP-37](37.md) instead. "Social" clients that deal primarily with `kind:1` notes should not be expected to implement this NIP. diff --git a/37.md b/37.md index ca0fdfb8..49475be1 100644 --- a/37.md +++ b/37.md @@ -31,6 +31,19 @@ A blanked `.content` field signals that the draft has been deleted. Clients SHOULD publish kind `31234` events to relays listed on kind `10013` below. +## Checkpoints +`kind:1234` defines checkpoints that belong to a parent `kind:31234` event. These can serve to provide a revision history of a parent event. + +```js +{ + "kind": 1234, + "tags": [ + ["a", "31234::"] + ], + "content": nip44Encrypt(JSON.stringify(draft_event)), +} +``` + ## Relay List for Private Content Kind `10013` indicates the user's preferred relays to store private events like Draft Wraps. diff --git a/51.md b/51.md index c5359517..90fbc6d9 100644 --- a/51.md +++ b/51.md @@ -34,6 +34,7 @@ For example, _mute list_ can contain the public keys of spammers and bad actors | Profile badges | 10008 | [NIP-58](58.md) badges a user has accepted and chosen to display | `"a"` (kind:30009 badge definitions) and `"e"` (kind:8 badge awards), and `"a"` (kind:30008 badge set) | | Simple groups | 10009 | [NIP-29](29.md) groups the user is in | `"group"` ([NIP-29](29.md) group id + relay URL + optional group name), `"r"` for each relay in use | | Relay feeds | 10012 | user favorite browsable relays (and relay sets) | `"relay"` (relay URLs) and `"a"` (kind:30002 relay set) | +| Draft relays | 10013 | (nip44-encrypted) [NIP-37](37.md) draft relays | `"relay"` (relay URL) | | Interests | 10015 | topics a user may be interested in and pointers | `"t"` (hashtags) and `"a"` (kind:30015 interest set) | | Media follows | 10020 | multimedia (photos, short video) follow list | `"p"` (pubkeys -- with optional relay hint and petname) | | Emojis | 10030 | user preferred emojis and pointers to emoji sets | `"emoji"` (see [NIP-30](30.md)) and `"a"` (kind:30030 emoji set) | diff --git a/README.md b/README.md index 9bdc4c18..42e4885d 100644 --- a/README.md +++ b/README.md @@ -156,6 +156,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos | `1018` | Poll Response | [88](88.md) | | `1021` | Bid | [15](15.md) | | `1022` | Bid confirmation | [15](15.md) | +| `1234` | Draft Checkpoint | [37](37.md) | | `1040` | OpenTimestamps | [03](03.md) | | `1059` | Gift Wrap | [59](59.md) | | `1063` | File Metadata | [94](94.md) |