upleb.uk

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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitor Pamplona <vitor@vitorpamplona.com>2024-03-14 14:07:23 -0400
committerVitor Pamplona <vitor@vitorpamplona.com>2024-03-14 14:07:23 -0400
commitf7f060303d25f081b1250761aff7522560270ddb (patch)
treea1aee640b05b15d71a355acaf6b25757b2b142dd
parentf96ccc6e351be0b42d8b8395cc5b2de72f7f8e75 (diff)
Adds anchor events.
-rw-r--r--35.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/35.md b/35.md
index beff675..476ae36 100644
--- a/35.md
+++ b/35.md
@@ -18,8 +18,12 @@ An additional `k` tag identifies the kind of the draft event.
18 "tags": [ 18 "tags": [
19 ["d", "<identifier>"], 19 ["d", "<identifier>"],
20 ["k", "<kind of the draft event>"], 20 ["k", "<kind of the draft event>"],
21 ["e", "<anchor event event id>", "<relay-url>"],
22 ["a", "<anchor event address>", "<relay-url>"],
21 ], 23 ],
22 "content": nip44Encrypt(JSON.stringify(draft_event)), 24 "content": nip44Encrypt(JSON.stringify(draft_event)),
23 // other fields 25 // other fields
24} 26}
25``` \ No newline at end of file 27```
28
29Tags `e` and `a` identify one or more anchor events, such as parent events on replies.