diff options
| author | Alex Gleason <alex@alexgleason.me> | 2025-03-04 19:11:50 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-04 19:11:50 -0600 |
| commit | 60fce9c520858136a3ff24a48aa7f19eca72d1cd (patch) | |
| tree | 72dc68b9a35868d7d32bf76886af2f578d82e440 | |
| parent | d662d97c66da015b96eabf1cff691d6278297582 (diff) | |
NIP-01 `a` tag clarificationalexgleason-patch-4
| -rw-r--r-- | 01.md | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -78,8 +78,8 @@ This NIP defines 3 standard tags that can be used across all event kinds with th | |||
| 78 | - The `e` tag, used to refer to an event: `["e", <32-bytes lowercase hex of the id of another event>, <recommended relay URL, optional>, <32-bytes lowercase hex of the author's pubkey, optional>]` | 78 | - The `e` tag, used to refer to an event: `["e", <32-bytes lowercase hex of the id of another event>, <recommended relay URL, optional>, <32-bytes lowercase hex of the author's pubkey, optional>]` |
| 79 | - The `p` tag, used to refer to another user: `["p", <32-bytes lowercase hex of a pubkey>, <recommended relay URL, optional>]` | 79 | - The `p` tag, used to refer to another user: `["p", <32-bytes lowercase hex of a pubkey>, <recommended relay URL, optional>]` |
| 80 | - The `a` tag, used to refer to an addressable or replaceable event | 80 | - The `a` tag, used to refer to an addressable or replaceable event |
| 81 | - for an addressable event: `["a", <kind integer>:<32-bytes lowercase hex of a pubkey>:<d tag value>, <recommended relay URL, optional>]` | 81 | - for an addressable event: `["a", "<kind integer>:<32-bytes lowercase hex of a pubkey>:<d tag value>", <recommended relay URL, optional>]` |
| 82 | - for a normal replaceable event: `["a", <kind integer>:<32-bytes lowercase hex of a pubkey>:, <recommended relay URL, optional>]` | 82 | - for a normal replaceable event: `["a", "<kind integer>:<32-bytes lowercase hex of a pubkey>:", <recommended relay URL, optional>]` (note: include the trailing colon) |
| 83 | 83 | ||
| 84 | 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. Only the first value in any given tag is indexed. | 84 | 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. Only the first value in any given tag is indexed. |
| 85 | 85 | ||