upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/37.md
diff options
context:
space:
mode:
authorpablof7z <pfer@me.com>2024-12-19 15:22:39 +0000
committerpablof7z <pfer@me.com>2024-12-19 15:23:12 +0000
commit739ba04e9f1cbb2083cb6b58079458126a2059bd (patch)
treea1eed69f2af5650f88d3f9a5b3e54c519d75dc8a /37.md
parent8d144906923132a245e50951464e1841478c923b (diff)
add checkpoint event
Diffstat (limited to '37.md')
-rw-r--r--37.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/37.md b/37.md
index 1ade59d..9ef728b 100644
--- a/37.md
+++ b/37.md
@@ -30,6 +30,19 @@ A blanked `.content` means this draft has been deleted by a client but relays st
30 30
31Tags `e` and `a` identify one or more anchor events, such as parent events on replies. 31Tags `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
35Kind `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. 48Kind `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.