upleb.uk

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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--26.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/26.md b/26.md
new file mode 100644
index 0000000..0131c46
--- /dev/null
+++ b/26.md
@@ -0,0 +1,29 @@
1NIP-26
2======
3
4Relays List
5-----------
6
7`draft` `optional` `author:fiatjaf`
8
9A special event with kind `10001`, meaning "relay list" is defined as having a list of tags, one for each relay the author uses.
10
11The content is not used.
12
13The tags consist of arrays of 3 elements: the first is the relay URL, the second is the "read" condition -- which if set `"true"` means the client is reading events from that relay --, the third is the "write" condition -- which if set to `"true"` means the user is writing events to that relay.
14
15In the future this NIP will be modified with more fine-grained conditions for writing and reading from relays, based on properties of the filter or of the event respectively, written as strings in a simple language.
16
17Example:
18
19```json
20{
21 "kind": 10001,
22 "tags": [
23 ["wss://alicerelay.com/", "true", "false"],
24 ["wss://bobrelay.com/", "true", "true"],
25 ["wss://carolrelay.com/", "false", "true"],
26 ],
27 "content": "",
28 ...other fields
29```