diff options
| author | jiftechnify <jiftech.stlfy@gmail.com> | 2023-08-29 23:49:59 +0900 |
|---|---|---|
| committer | jiftechnify <jiftech.stlfy@gmail.com> | 2023-08-29 23:54:09 +0900 |
| commit | e50bf508d9014cfb19bfa8a5c4ec88dc4788d490 (patch) | |
| tree | 8a1df2be40e8d02a18cf35ad62705c034af37e73 | |
| parent | 415e261ec0d1c68b3dcd8631d94227b91a87c899 (diff) | |
add a-tag format for non-parameterized replaceable events
| -rw-r--r-- | 01.md | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -66,7 +66,9 @@ This NIP defines 3 standard tags that can be used across all event kinds with th | |||
| 66 | 66 | ||
| 67 | - The `e` tag, used to refer to an event: `["e", <32-bytes lowercase hex of the id of another event>, <recommended relay URL, optional>]` | 67 | - The `e` tag, used to refer to an event: `["e", <32-bytes lowercase hex of the id of another event>, <recommended relay URL, optional>]` |
| 68 | - The `p` tag, used to refer to another user: `["p", <32-bytes lowercase hex of a pubkey>, <recommended relay URL, optional>]` | 68 | - The `p` tag, used to refer to another user: `["p", <32-bytes lowercase hex of a pubkey>, <recommended relay URL, optional>]` |
| 69 | - The `a` tag, used to refer to a parameterized replaceable event: `["a", <kind integer>:<32-bytes lowercase hex of a pubkey>:<d tag value>, <recommended relay URL, optional>]` | 69 | - The `a` tag, used to refer to a (maybe parameterized) replaceable event |
| 70 | - for a parameterized replaceable event: `["a", <kind integer>:<32-bytes lowercase hex of a pubkey>:<d tag value>, <recommended relay URL, optional>]` | ||
| 71 | - for a non-parameterized replaceable event: `["a", <kind integer>:<32-bytes lowercase hex of a pubkey>:, <recommended relay URL, optional>]` | ||
| 70 | 72 | ||
| 71 | 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. | 73 | 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. |
| 72 | 74 | ||