mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-22 16:35:52 -05:00
NIP-33: d
tag requirements
This commit is contained in:
parent
54b6c0090d
commit
d179cd9758
4
33.md
4
33.md
|
@ -10,6 +10,8 @@ This NIP adds a new event range that allows for replacement of events that have
|
||||||
|
|
||||||
Implementation
|
Implementation
|
||||||
--------------
|
--------------
|
||||||
|
The value of a tag is defined as the first parameter of a tag after the tag name.
|
||||||
|
|
||||||
A *parameterized replaceable event* is defined as an event with a kind `30000 <= n < 40000`.
|
A *parameterized replaceable event* is defined as an event with a kind `30000 <= n < 40000`.
|
||||||
Upon a parameterized replaceable event with a newer timestamp than the currently known latest
|
Upon a parameterized replaceable event with a newer timestamp than the currently known latest
|
||||||
replaceable event with the same kind and first `d` tag value being received, the old event
|
replaceable event with the same kind and first `d` tag value being received, the old event
|
||||||
|
@ -26,6 +28,8 @@ replace each other:
|
||||||
* `"tags":[["e"]]`: same as no tags
|
* `"tags":[["e"]]`: same as no tags
|
||||||
* `"tags":[["d","test","1"]]`: only the value is considered (`test`)
|
* `"tags":[["d","test","1"]]`: only the value is considered (`test`)
|
||||||
|
|
||||||
|
Clients SHOULD NOT use `d` tags with multiple values and SHOULD include the `d` tag even if it has no value to allow querying using the `#d` filter.
|
||||||
|
|
||||||
Client Behavior
|
Client Behavior
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user