diff options
| -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 | --------------- |