From d52fd3bacde76d82c7dc4f18615d1d83743652a6 Mon Sep 17 00:00:00 2001 From: arthurfranca Date: Sun, 11 Feb 2024 18:52:14 -0300 Subject: [PATCH] Use new kind range for events that require auth based on 'A' tag --- 00.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/00.md b/00.md index cf0f851..f37a742 100644 --- a/00.md +++ b/00.md @@ -12,7 +12,7 @@ This NIP defines how to upgrade a public event with the property of limiting acc A public event (with no access control), such as of `kind:1`, must be published or updated with a `full_event` tag pointing to a -`kind:30042` event address. +`kind:40042` event address. It may include one of the following tags holding a preview of the full event content: `summary`, `image`, `audio`, `video`. The first holds a text excerpt while the others an URL. @@ -23,7 +23,7 @@ Example: { "kind": 1063, "tags": [ - ["full_event", "30042:<32-bytes lowercase hex of a pubkey>:abc", ""], + ["full_event", "40042:<32-bytes lowercase hex of a pubkey>:abc", ""], ["image", ""], ["dim", "800x600"] ], @@ -34,7 +34,7 @@ Example: ## Full Event -A "Full Event" is of `kind:30042`. It has [NIP-42](42.md) `A` tags the author +A "Full Event" is of `kind:40042`. It has [NIP-42](42.md) `A` tags the author can update at will with the pubkeys allowed to access it. It uses the custom NIP-42 event serialization for events that require `AUTH`. @@ -47,7 +47,7 @@ Example: ```json { - "kind": 30042, + "kind": 40042, "pubkey": "", "tags": [ ["d", ""], @@ -74,4 +74,4 @@ a `#A` filter key set to the client's user pubkey. If the user has rights to access the full event, the relay will send it after the NIP-42 authentication flow. -For example: `{ kinds: [30042], authors: ["abc"], #d: ["xyz"], #A: [""], limit: 1 }` +For example: `{ kinds: [40042], authors: ["abc"], #d: ["xyz"], #A: [""], limit: 1 }`