diff options
| author | pablof7z <pfer@me.com> | 2024-12-19 15:22:39 +0000 |
|---|---|---|
| committer | pablof7z <pfer@me.com> | 2024-12-19 15:23:12 +0000 |
| commit | 739ba04e9f1cbb2083cb6b58079458126a2059bd (patch) | |
| tree | a1eed69f2af5650f88d3f9a5b3e54c519d75dc8a | |
| parent | 8d144906923132a245e50951464e1841478c923b (diff) | |
add checkpoint event
| -rw-r--r-- | 37.md | 13 | ||||
| -rw-r--r-- | README.md | 1 |
2 files changed, 14 insertions, 0 deletions
| @@ -30,6 +30,19 @@ A blanked `.content` means this draft has been deleted by a client but relays st | |||
| 30 | 30 | ||
| 31 | Tags `e` and `a` identify one or more anchor events, such as parent events on replies. | 31 | Tags `e` and `a` identify one or more anchor events, such as parent events on replies. |
| 32 | 32 | ||
| 33 | ## Checkpoints | ||
| 34 | `kind:1234` defines checkpoints that belong to a parent `kind:31234` event. These can serve to provide a revision history of a parent event. | ||
| 35 | |||
| 36 | ```js | ||
| 37 | { | ||
| 38 | "kind": 1234, | ||
| 39 | "tags": [ | ||
| 40 | ["a", "31234:<pubkey>:<identifier>"] | ||
| 41 | ], | ||
| 42 | "content": nip44Encrypt(JSON.stringify(draft_event)), | ||
| 43 | } | ||
| 44 | ``` | ||
| 45 | |||
| 33 | ## Relay List for Private Content | 46 | ## Relay List for Private Content |
| 34 | 47 | ||
| 35 | Kind `10013` indicates the user's preferred relays to store private events like Drafts. The event MUST include a list of `relay` URLs in private tags. Private tags are JSON Stringified, NIP-44-encrypted to the signer's keys and placed inside the .content of the event. | 48 | Kind `10013` indicates the user's preferred relays to store private events like Drafts. The event MUST include a list of `relay` URLs in private tags. Private tags are JSON Stringified, NIP-44-encrypted to the signer's keys and placed inside the .content of the event. |
| @@ -130,6 +130,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos | |||
| 130 | | `818` | Merge Requests | [54](54.md) | | 130 | | `818` | Merge Requests | [54](54.md) | |
| 131 | | `1021` | Bid | [15](15.md) | | 131 | | `1021` | Bid | [15](15.md) | |
| 132 | | `1022` | Bid confirmation | [15](15.md) | | 132 | | `1022` | Bid confirmation | [15](15.md) | |
| 133 | | `1234` | Draft Checkpoint | [37](37.md) | | ||
| 133 | | `1040` | OpenTimestamps | [03](03.md) | | 134 | | `1040` | OpenTimestamps | [03](03.md) | |
| 134 | | `1059` | Gift Wrap | [59](59.md) | | 135 | | `1059` | Gift Wrap | [59](59.md) | |
| 135 | | `1063` | File Metadata | [94](94.md) | | 136 | | `1063` | File Metadata | [94](94.md) | |