diff options
| author | Pablo Fernandez <p@f7z.io> | 2023-06-08 22:32:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-08 22:32:17 +0200 |
| commit | 6baacf6fb1badf3ba2480a88519e357b3cbdaaac (patch) | |
| tree | b3d211bc3683b340d678c3574519f327e7b3858e /33.md | |
| parent | 964bc5b5ce946ab66aae945084549f26ffdef70f (diff) | |
| parent | 14a887d43b654f41de5d271e27ef69048f183fb4 (diff) | |
Merge branch 'master' into nip31
Diffstat (limited to '33.md')
| -rw-r--r-- | 33.md | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -10,7 +10,7 @@ This NIP adds a new event range that allows for replacement of events that have | |||
| 10 | 10 | ||
| 11 | Implementation | 11 | Implementation |
| 12 | -------------- | 12 | -------------- |
| 13 | The value of a tag is defined as the first parameter of a tag after the tag name. | 13 | The value of a tag can be any string and is defined as the first parameter of a tag after the tag name. |
| 14 | 14 | ||
| 15 | A *parameterized replaceable event* is defined as an event with a kind `30000 <= n < 40000`. | 15 | A *parameterized replaceable event* is defined as an event with a kind `30000 <= n < 40000`. |
| 16 | Upon a parameterized replaceable event with a newer timestamp than the currently known latest | 16 | Upon a parameterized replaceable event with a newer timestamp than the currently known latest |
| @@ -18,6 +18,8 @@ replaceable event with the same kind, author and first `d` tag value being recei | |||
| 18 | SHOULD be discarded, effectively replacing what gets returned when querying for | 18 | SHOULD be discarded, effectively replacing what gets returned when querying for |
| 19 | `author:kind:d-tag` tuples. | 19 | `author:kind:d-tag` tuples. |
| 20 | 20 | ||
| 21 | If two events have the same timestamp, the event with the lowest id (first in lexical order) SHOULD be retained, and the other discarded. | ||
| 22 | |||
| 21 | A missing or a `d` tag with no value should be interpreted equivalent to a `d` tag with the | 23 | A missing or a `d` tag with no value should be interpreted equivalent to a `d` tag with the |
| 22 | value as an empty string. Events from the same author with any of the following `tags` | 24 | value as an empty string. Events from the same author with any of the following `tags` |
| 23 | replace each other: | 25 | replace each other: |