From e9a201b5c04460f31fe3fa06fe9bd621fee25543 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Wed, 3 Apr 2024 09:50:32 -0400 Subject: [PATCH] Moves away from the `relays` tag in favor of multiple `relay` tags. --- 63.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/63.md b/63.md index 3c1b3129..2f3c498f 100644 --- a/63.md +++ b/63.md @@ -10,9 +10,9 @@ Event kind `33012` is used to represent one or more Nostr filters. The `d` tag represents the subscription id and the `filter` tag contains the JSON-stringified [NIP-01](01.md) filter. -The optional `relays` tag contains the destination relays the filter was designed to download events from. +The optional `relay` tag lists the authorized relays the filter can download events from. -The optional `authorized` pubkey contains the pubkey authorized to re-use this filter and receive events on behalf of the user. +The optional `authorized` tag lists the pubkeys that are authorized to receive authed events on behalf of the user. ```js { @@ -22,7 +22,8 @@ The optional `authorized` pubkey contains the pubkey authorized to re-use this f ["filter", ""], ["filter", ""], ["authorized", "<32-bytes lowercase hex of a pubkey>"], - ["relays", "", "", ...], + ["relay", ""], + ["relay", ""], ["expiration", ""], ], "content": "", @@ -40,7 +41,7 @@ Supporting relays interpret the `filter` tags in the same way they do with `REQ` Relays MUST authenticate the `authorized` key if present. -Relays MUST verify if they are included in the `relays` list if present. +Relays MUST verify if they are included in the `relay` tag list if present. Relays MUST comply with the `expiration` to limit the reuse of the filter.