From 5a1476f8b2474c311602569ea3c9f44b2ecaf535 Mon Sep 17 00:00:00 2001 From: Arman The Parman <77603167+ArmanTheParman@users.noreply.github.com> Date: Tue, 18 Jun 2024 14:04:46 +1000 Subject: [PATCH] update to parameterized tags Tried to improve the explanation of parameterized tags --- 01.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/01.md b/01.md index 60d97853..9c2ad03e 100644 --- a/01.md +++ b/01.md @@ -77,11 +77,12 @@ This NIP defines 3 standard tags that can be used across all event kinds with th - The `e` tag, used to refer to an event: `["e", <32-bytes lowercase hex of the id of another event>, ]` - The `p` tag, used to refer to another user: `["p", <32-bytes lowercase hex of a pubkey>, ]` -- The `a` tag, used to refer to a (maybe parameterized) replaceable event - - for a parameterized replaceable event: `["a", :<32-bytes lowercase hex of a pubkey>:, ]` - - for a non-parameterized replaceable event: `["a", :<32-bytes lowercase hex of a pubkey>:, ]` +- The `a` tag, used to refer to a replaceable event. + - The second element (tag value) contains a minimum of 2 identifiers - the kind and the pubkey. If a third is optionally added (the arbitrary "d tag value"), the event becomes "parameterized". + - Structure of a parameterized event: `["a", :<32-bytes lowercase hex of a pubkey>:, ]` + - Structure of a non-parameterized event: `["a", :<32-bytes lowercase hex of a pubkey>:, ]` -As a convention, all single-letter (only english alphabet letters: a-z, A-Z) key tags are expected to be indexed by relays, such that it is possible, for example, to query or subscribe to events that reference the event `"5c83da77af1dec6d7289834998ad7aafbd9e2191396d75ec3cc27f5a77226f36"` by using the `{"#e": ["5c83da77af1dec6d7289834998ad7aafbd9e2191396d75ec3cc27f5a77226f36"]}` filter. +As a convention, all single-letter (only English alphabet letters: a-z, A-Z) key tags are expected to be indexed by relays, such that it is possible, for example, to query or subscribe to events that reference the event `"5c83da77af1dec6d7289834998ad7aafbd9e2191396d75ec3cc27f5a77226f36"` by using the `{"#e": ["5c83da77af1dec6d7289834998ad7aafbd9e2191396d75ec3cc27f5a77226f36"]}` filter. ### Kinds