mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-23 00:45:53 -05:00
add a
tag description
security model tag specifies how events should be updated
This commit is contained in:
parent
9c19137935
commit
2111dd0114
13
62.md
13
62.md
|
@ -27,10 +27,14 @@ A publication index defines the structure and metadata of a collection. It serve
|
|||
- `d` tag
|
||||
- `pubkey`
|
||||
- `kind`
|
||||
- MUST include `a` tags or `e` tags, listing the events in desired display order.
|
||||
- `a` tags automatically will update with edits, while`e` tags will lock entry to a specific version. See [standardized tags](https://github.com/limina1/nips/tree/master?tab=readme-ov-file#standardized-tags)
|
||||
- MUST include `a` tags listing the events in desired display order.
|
||||
- Format: `["a", "kind:pubkey:dtag", "relay hint", "event id"]`
|
||||
- Optional event ID field enables version tracking while maintaining updateable references
|
||||
- Referenced events SHOULD be kind 30041 sections or nested kind 30040 indices
|
||||
- Additional event kinds MAY be supported
|
||||
- MUST include a `auto-update` tag specifying update behavior:
|
||||
- Format: `["auto-update", "<yes|ask|no>"]`
|
||||
- Controls whether clients should automatically update to newer versions
|
||||
- For derivative works:
|
||||
- MUST include a `p` tag identifying the original author
|
||||
- MUST include an `E` tag referencing the original event immediately after the `p` tag
|
||||
|
@ -55,8 +59,9 @@ A publication index defines the structure and metadata of a collection. It serve
|
|||
["published_by", "public domain"],
|
||||
["image", "https://imageserver.com/piclink.jpg"],
|
||||
["summary", "Collection of selected fables from the ancient Greek philosopher, known as Aesop."],
|
||||
["e", "<id>", "<relay_url>", "<pubkey>"],
|
||||
["e", "<id>", "<relay_url>", "<pubkey>"],
|
||||
["a", "<id>", "<relay_url>", "<pubkey>"],
|
||||
["a", "<id>", "<relay_url>", "<pubkey>"],
|
||||
["auto-update", "<yes|ask|no>"],
|
||||
["p", "<pubkey_0>"],
|
||||
["E", "<original_event_id>", "<relay_url>", "<pubkey>"]
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue
Block a user