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-05-30 15:27:59 -0400
committerVitor Pamplona <vitor@vitorpamplona.com>2024-05-30 15:27:59 -0400
commit00b2e0a5cb819f9b2e8135f08d29ee94607d83b6 (patch)
treed39cb34c22e1c0172b20adf0947ac4813387e99a
parent0ed2f63f223f03a171d1aa5c31dbec6bd68ffb6b (diff)
Adds private outbox relays.
-rw-r--r--35.md19
-rw-r--r--README.md1
2 files changed, 20 insertions, 0 deletions
diff --git a/35.md b/35.md
index 4bec44b..45663dd 100644
--- a/35.md
+++ b/35.md
@@ -29,3 +29,22 @@ An additional `k` tag identifies the kind of the draft event.
29A blanked `.content` means this draft has been deleted by a client but relays still have the event. 29A blanked `.content` means this draft has been deleted by a client but relays still have the event.
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
33## Relay List for Private Content
34
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.
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
48Relays listed in this event SHOULD be authed and only allow downloads to events signed by the authed user.
49
50Clients SHOULD publish kind `10013` events to the author's [NIP-65](65.md) `write` relays.
diff --git a/README.md b/README.md
index dce4aaf..6cd4778 100644
--- a/README.md
+++ b/README.md
@@ -136,6 +136,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos
136| `10006` | Blocked relays list | [51](51.md) | 136| `10006` | Blocked relays list | [51](51.md) |
137| `10007` | Search relays list | [51](51.md) | 137| `10007` | Search relays list | [51](51.md) |
138| `10009` | User groups | [51](51.md), [29](29.md) | 138| `10009` | User groups | [51](51.md), [29](29.md) |
139| `10013` | Private Relays | [35](35.md)
139| `10015` | Interests list | [51](51.md) | 140| `10015` | Interests list | [51](51.md) |
140| `10030` | User emoji list | [51](51.md) | 141| `10030` | User emoji list | [51](51.md) |
141| `10096` | File storage server list | [96](96.md) | 142| `10096` | File storage server list | [96](96.md) |