diff options
| author | Vitor Pamplona <vitor@vitorpamplona.com> | 2024-03-14 14:07:23 -0400 |
|---|---|---|
| committer | Vitor Pamplona <vitor@vitorpamplona.com> | 2024-03-14 14:07:23 -0400 |
| commit | f7f060303d25f081b1250761aff7522560270ddb (patch) | |
| tree | a1aee640b05b15d71a355acaf6b25757b2b142dd | |
| parent | f96ccc6e351be0b42d8b8395cc5b2de72f7f8e75 (diff) | |
Adds anchor events.
| -rw-r--r-- | 35.md | 6 |
1 files changed, 5 insertions, 1 deletions
| @@ -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 | |||
| 29 | Tags `e` and `a` identify one or more anchor events, such as parent events on replies. | ||