From dbbb66c6de46870899dfc2d975211b6298d92871 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sat, 13 Aug 2022 08:24:51 -0300 Subject: [PATCH] add nip 26: relays list. --- 26.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 26.md diff --git a/26.md b/26.md new file mode 100644 index 00000000..0131c46b --- /dev/null +++ b/26.md @@ -0,0 +1,29 @@ +NIP-26 +====== + +Relays List +----------- + +`draft` `optional` `author:fiatjaf` + +A special event with kind `10001`, meaning "relay list" is defined as having a list of tags, one for each relay the author uses. + +The content is not used. + +The 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. + +In 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. + +Example: + +```json +{ + "kind": 10001, + "tags": [ + ["wss://alicerelay.com/", "true", "false"], + ["wss://bobrelay.com/", "true", "true"], + ["wss://carolrelay.com/", "false", "true"], + ], + "content": "", + ...other fields +```