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:
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.