NIP-33: Add example for more than one value

This commit is contained in:
Semisol 2023-01-24 21:36:15 +03:00 committed by fiatjaf
parent 9682e43ee0
commit 54b6c0090d

5
33.md
View File

@ -10,10 +10,10 @@ This NIP adds a new event range that allows for replacement of events that have
Implementation
--------------
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
replaceable event with the same kind and first `d` tag value being received, the old event
SHOULD be discarded and replaced with the newer event.
SHOULD be discarded and replaced with the newer event.
A missing or a `d` tag with no value should be interpreted equivalent to a `d` tag with the
value as an empty string. Events from the same author with any of the following `tags`
replace each other:
@ -24,6 +24,7 @@ replace each other:
* `"tags":[["d",""],["d","not empty"]]`: only first `d` tag is considered
* `"tags":[["d"],["d","some value"]]`: only first `d` tag is considered
* `"tags":[["e"]]`: same as no tags
* `"tags":[["d","test","1"]]`: only the value is considered (`test`)
Client Behavior
---------------