diff options
| author | Semisol <45574030+Semisol@users.noreply.github.com> | 2023-01-24 21:36:15 +0300 |
|---|---|---|
| committer | fiatjaf <fiatjaf@gmail.com> | 2023-01-24 15:54:57 -0300 |
| commit | 54b6c0090dbf3d30c20385bbd4814f3336e29f5f (patch) | |
| tree | 29b89044e6d7940f47bc2b5cec7a3eb57453d9a0 | |
| parent | 9682e43ee03cd50b5994bada0e3a97e3c259b314 (diff) | |
NIP-33: Add example for more than one value
| -rw-r--r-- | 33.md | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -10,10 +10,10 @@ This NIP adds a new event range that allows for replacement of events that have | |||
| 10 | 10 | ||
| 11 | Implementation | 11 | Implementation |
| 12 | -------------- | 12 | -------------- |
| 13 | A *parameterized replaceable event* is defined as an event with a kind `30000 <= n < 40000`. | 13 | A *parameterized replaceable event* is defined as an event with a kind `30000 <= n < 40000`. |
| 14 | Upon a parameterized replaceable event with a newer timestamp than the currently known latest | 14 | Upon a parameterized replaceable event with a newer timestamp than the currently known latest |
| 15 | replaceable event with the same kind and first `d` tag value being received, the old event | 15 | replaceable event with the same kind and first `d` tag value being received, the old event |
| 16 | SHOULD be discarded and replaced with the newer event. | 16 | SHOULD be discarded and replaced with the newer event. |
| 17 | A missing or a `d` tag with no value should be interpreted equivalent to a `d` tag with the | 17 | A missing or a `d` tag with no value should be interpreted equivalent to a `d` tag with the |
| 18 | value as an empty string. Events from the same author with any of the following `tags` | 18 | value as an empty string. Events from the same author with any of the following `tags` |
| 19 | replace each other: | 19 | replace 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 | ||
| 28 | Client Behavior | 29 | Client Behavior |
| 29 | --------------- | 30 | --------------- |