You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 01.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,7 @@ This NIP defines 3 standard tags that can be used across all event kinds with th
82
82
- for a parameterized replaceable event: `["a", <kind integer>:<32-bytes lowercase hex of a pubkey>:<d tag value>, <recommended relay URL, optional>]`
83
83
- for a non-parameterized replaceable event: `["a", <kind integer>:<32-bytes lowercase hex of a pubkey>:, <recommended relay URL, optional>]`
84
84
85
-
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.
85
+
As a convention, all single-letter (only english alphabet letters: a-z, A-Z) and single-char exclamation mark 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.
86
86
87
87
### Kinds
88
88
@@ -125,7 +125,7 @@ Clients can send 3 types of messages, which must be JSON arrays, according to th
125
125
"ids": <a list of event ids>,
126
126
"authors": <a list of lowercase pubkeys, the pubkey of an event must be one of these>,
127
127
"kinds": <a list of a kind numbers>,
128
-
"#<single-letter (a-zA-Z)>": <a list of tag values, for #e — a list of event ids, for #p — a list of event pubkeys etc>,
128
+
"#<single-letter (a-zA-Z) or !>": <a list of tag values, for #e — a list of event ids, for #p — a list of event pubkeys etc>,
129
129
"since": <an integer unix timestamp in seconds, events must be newer than this to pass>,
130
130
"until": <an integer unix timestamp in seconds, events must be older than this to pass>,
131
131
"limit": <maximum number of events relays SHOULD return in the initial query>
Copy file name to clipboardExpand all lines: 09.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,11 @@ For example:
28
28
}
29
29
```
30
30
31
-
Relays SHOULD delete or stop publishing any referenced events that have an identical `pubkey` as the deletion request OR that have a `!` tag value equal to the deletion request `pubkey`. Clients SHOULD hide or otherwise indicate a deletion status for referenced events.
31
+
Relays SHOULD delete or stop publishing any referenced events that have an identical `pubkey` as the deletion request.
32
+
When a referenced event contains `!` tags(s), however, **instead of the former rule**, relays SHOULD only honor
33
+
deletion requests with a `pubkey` that matches one of the `!` tags values.
34
+
35
+
Clients SHOULD hide or otherwise indicate a deletion status for referenced events.
32
36
33
37
Relays SHOULD continue to publish/share the deletion events indefinitely, as clients may already have the event that's intended to be deleted. Additionally, clients SHOULD broadcast deletion events to other relays which don't have it.
34
38
@@ -42,7 +46,7 @@ Clients display the deletion event itself in any way they choose, e.g., not at a
42
46
43
47
## Relay Usage
44
48
45
-
Relays MAY validate that a deletion event only references events that have the same `pubkey` as the deletion itself or that have a `!` tag value equal to the deletion `pubkey`, however this is not required since relays may not have knowledge of all referenced events.
49
+
Relays MAY validate that a deletion event only references events that have the same `pubkey` as the deletion itself OR that have a `!` tag value equal to the deletion `pubkey`, however this is not required since relays may not have knowledge of all referenced events.
0 commit comments