diff options
Diffstat (limited to '35.md')
| -rw-r--r-- | 35.md | 19 |
1 files changed, 19 insertions, 0 deletions
| @@ -29,3 +29,22 @@ An additional `k` tag identifies the kind of the draft event. | |||
| 29 | A blanked `.content` means this draft has been deleted by a client but relays still have the event. | 29 | A blanked `.content` means this draft has been deleted by a client but relays still have the event. |
| 30 | 30 | ||
| 31 | Tags `e` and `a` identify one or more anchor events, such as parent events on replies. | 31 | Tags `e` and `a` identify one or more anchor events, such as parent events on replies. |
| 32 | |||
| 33 | ## Relay List for Private Content | ||
| 34 | |||
| 35 | Kind `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. | ||
| 36 | |||
| 37 | ```js | ||
| 38 | { | ||
| 39 | "kind": 10013, | ||
| 40 | "tags": [], | ||
| 41 | "content": nip44Encrypt(JSON.stringify([ | ||
| 42 | ["relay", "wss://myrelay.mydomain.com"] | ||
| 43 | ])) | ||
| 44 | //...other fields | ||
| 45 | } | ||
| 46 | ``` | ||
| 47 | |||
| 48 | Relays listed in this event SHOULD be authed and only allow downloads to events signed by the authed user. | ||
| 49 | |||
| 50 | Clients SHOULD publish kind `10013` events to the author's [NIP-65](65.md) `write` relays. | ||