NIP-33: d tag requirements

This commit is contained in:
Semisol 2023-01-24 21:48:54 +03:00 committed by fiatjaf
parent 54b6c0090d
commit d179cd9758

4
33.md
View File

@ -10,6 +10,8 @@ This NIP adds a new event range that allows for replacement of events that have
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`.
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
@ -26,6 +28,8 @@ replace each other:
* `"tags":[["e"]]`: same as no tags
* `"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
---------------