upleb.uk

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

summaryrefslogtreecommitdiff
path: root/33.md
diff options
context:
space:
mode:
authorSemisol <45574030+Semisol@users.noreply.github.com>2023-01-24 21:48:54 +0300
committerfiatjaf <fiatjaf@gmail.com>2023-01-24 15:54:57 -0300
commitd179cd9758c0305300757ae6fa7eb9dc6d781223 (patch)
treea68acb567805bd05da457b13241401538bc5e982 /33.md
parent54b6c0090dbf3d30c20385bbd4814f3336e29f5f (diff)
NIP-33: `d` tag requirements
Diffstat (limited to '33.md')
-rw-r--r--33.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/33.md b/33.md
index 4ebabc4..6b05bd0 100644
--- a/33.md
+++ b/33.md
@@ -10,6 +10,8 @@ This NIP adds a new event range that allows for replacement of events that have
10 10
11Implementation 11Implementation
12-------------- 12--------------
13The value of a tag is defined as the first parameter of a tag after the tag name.
14
13A *parameterized replaceable event* is defined as an event with a kind `30000 <= n < 40000`. 15A *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 16Upon 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 17replaceable event with the same kind and first `d` tag value being received, the old event
@@ -26,6 +28,8 @@ replace each other:
26* `"tags":[["e"]]`: same as no tags 28* `"tags":[["e"]]`: same as no tags
27* `"tags":[["d","test","1"]]`: only the value is considered (`test`) 29* `"tags":[["d","test","1"]]`: only the value is considered (`test`)
28 30
31Clients 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.
32
29Client Behavior 33Client Behavior
30--------------- 34---------------
31 35