mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-13 19:06:24 +00:00
NIP-33: Add example for more than one value
This commit is contained in:
parent
9682e43ee0
commit
54b6c0090d
5
33.md
5
33.md
@ -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
|
||||
---------------
|
||||
|
Loading…
Reference in New Issue
Block a user