upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSemisol <45574030+Semisol@users.noreply.github.com>2023-01-24 21:36:15 +0300
committerfiatjaf <fiatjaf@gmail.com>2023-01-24 15:54:57 -0300
commit54b6c0090dbf3d30c20385bbd4814f3336e29f5f (patch)
tree29b89044e6d7940f47bc2b5cec7a3eb57453d9a0
parent9682e43ee03cd50b5994bada0e3a97e3c259b314 (diff)
NIP-33: Add example for more than one value
-rw-r--r--33.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/33.md b/33.md
index db572ad..4ebabc4 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
10 10
11Implementation 11Implementation
12-------------- 12--------------
13A *parameterized replaceable event* is defined as an event with a kind `30000 <= n < 40000`. 13A *parameterized replaceable event* is defined as an event with a kind `30000 <= n < 40000`.
14Upon a parameterized replaceable event with a newer timestamp than the currently known latest 14Upon a parameterized replaceable event with a newer timestamp than the currently known latest
15replaceable event with the same kind and first `d` tag value being received, the old event 15replaceable event with the same kind and first `d` tag value being received, the old event
16SHOULD be discarded and replaced with the newer event. 16SHOULD be discarded and replaced with the newer event.
17A missing or a `d` tag with no value should be interpreted equivalent to a `d` tag with the 17A missing or a `d` tag with no value should be interpreted equivalent to a `d` tag with the
18value as an empty string. Events from the same author with any of the following `tags` 18value as an empty string. Events from the same author with any of the following `tags`
19replace each other: 19replace each other:
@@ -24,6 +24,7 @@ replace each other:
24* `"tags":[["d",""],["d","not empty"]]`: only first `d` tag is considered 24* `"tags":[["d",""],["d","not empty"]]`: only first `d` tag is considered
25* `"tags":[["d"],["d","some value"]]`: only first `d` tag is considered 25* `"tags":[["d"],["d","some value"]]`: only first `d` tag is considered
26* `"tags":[["e"]]`: same as no tags 26* `"tags":[["e"]]`: same as no tags
27* `"tags":[["d","test","1"]]`: only the value is considered (`test`)
27 28
28Client Behavior 29Client Behavior
29--------------- 30---------------