From 54b6c0090dbf3d30c20385bbd4814f3336e29f5f Mon Sep 17 00:00:00 2001 From: Semisol <45574030+Semisol@users.noreply.github.com> Date: Tue, 24 Jan 2023 21:36:15 +0300 Subject: [PATCH] NIP-33: Add example for more than one value --- 33.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/33.md b/33.md index db572ad2..4ebabc40 100644 --- a/33.md +++ b/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 ---------------