mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-25 17:55:51 -05:00
Adds description about the replaceable format.
This commit is contained in:
parent
251193182e
commit
9bbf50551e
4
01.md
4
01.md
|
@ -79,7 +79,7 @@ Specific ranges define storage behaviors:
|
|||
| Ephemeral | `20000 <= kind < 30000` | Nothing |
|
||||
| Parameterized | `30000 <= kind < 40000` | The newest event for each `pubkey`, `kind` and `d`-tag |
|
||||
|
||||
Parameterized Repleaceable events MUST include a `d`-tag with an identifier value to be used as reference.
|
||||
Parameterized Repleaceable events MUST include a `d`-tag with an identifier value to be used as reference. Tag values want to reference the newest repleceable MUST use this format: `<kind>:<32-byte lowercase hex of a pubkey>:<d-tag value>`.
|
||||
|
||||
In case of replaceable events with the same timestamp, the event with the lowest `.id` (first in lexical order) SHOULD be retained. Older versions MAY be kept but SHOULD not be returned on queries.
|
||||
|
||||
|
@ -93,7 +93,7 @@ The first element of the tag array is referred to as the tag _name_ and the seco
|
|||
|
||||
All single-letter (only English alphabet letters: a-z, A-Z) key tags are indexed by relays for faster queries.
|
||||
|
||||
This NIP defines the format of 3 standard tags: `e`, `p`, and `a`. `e`, `p` can be used to reference events and pubkeys, and `a` references the latest version of a replaceable event, parameterized or not.
|
||||
This NIP defines the format of 3 standard tags: `e`, `p`, and `a`. `e`, `p` can be used to reference events and pubkeys respectivelly, and `a` references the latest version of a replaceable event, parameterized or not. Clients MAY `a`- and `e`-tag parameterized replaceables simultaneously.
|
||||
|
||||
| Name | Value | Other Params |
|
||||
| ---- | ---------------------------------------------------------- | ------------------------ |
|
||||
|
|
Loading…
Reference in New Issue
Block a user