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 /37.md | |
| parent | 8d144906923132a245e50951464e1841478c923b (diff) | |
add checkpoint event
Diffstat (limited to '37.md')
| -rw-r--r-- | 37.md | 13 |
1 files changed, 13 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. |