Adds anchor events.

This commit is contained in:
Vitor Pamplona 2024-03-14 14:07:23 -04:00
parent f96ccc6e35
commit f7f060303d

4
35.md
View File

@ -18,8 +18,12 @@ An additional `k` tag identifies the kind of the draft event.
"tags": [ "tags": [
["d", "<identifier>"], ["d", "<identifier>"],
["k", "<kind of the draft event>"], ["k", "<kind of the draft event>"],
["e", "<anchor event event id>", "<relay-url>"],
["a", "<anchor event address>", "<relay-url>"],
], ],
"content": nip44Encrypt(JSON.stringify(draft_event)), "content": nip44Encrypt(JSON.stringify(draft_event)),
// other fields // other fields
} }
``` ```
Tags `e` and `a` identify one or more anchor events, such as parent events on replies.