From 8265a0a2c1629b7884162e68ba5467a56a208065 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Sat, 30 Mar 2024 16:57:37 -0400 Subject: [PATCH] Pre-auth filters --- 63.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 63.md diff --git a/63.md b/63.md new file mode 100644 index 00000000..3702a83c --- /dev/null +++ b/63.md @@ -0,0 +1,33 @@ +NIP-63 +====== + +Pre-authed Filters +------------------ + +`draft` `optional` + +This NIP declares the use of event kind `33012` to represent one or more Nostr filters. + +The `d` tag represents the subscription id and the `filter` tag describes a (NIP-01)[01.md] filter. + +Supporting relays interpret the tags of this event as if they were submitted in the `REQ` scheme while automatically authenticating the signer. + +They are submitted to the relay via `EVENT` messages instead of the usual `REQ` message. + +The goal is to be able to support `AUTH` from multiple users in the same connection while removing the usual `AUTH` round trip. + +```json +{ + "kind": 33012, + "tags": [ + ["d", ""], + ["filter", ""], + ["filter", ""], + ], + "content": "", + ...other fields +} +``` + + +