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
|
- `d` tag
|
||||||
- `pubkey`
|
- `pubkey`
|
||||||
- `kind`
|
- `kind`
|
||||||
- MUST include `a` tags or `e` tags, listing the events in desired display order.
|
- MUST include `a` 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)
|
- 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
|
- Referenced events SHOULD be kind 30041 sections or nested kind 30040 indices
|
||||||
- Additional event kinds MAY be supported
|
- 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:
|
- For derivative works:
|
||||||
- MUST include a `p` tag identifying the original author
|
- MUST include a `p` tag identifying the original author
|
||||||
- MUST include an `E` tag referencing the original event immediately after the `p` tag
|
- 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"],
|
["published_by", "public domain"],
|
||||||
["image", "https://imageserver.com/piclink.jpg"],
|
["image", "https://imageserver.com/piclink.jpg"],
|
||||||
["summary", "Collection of selected fables from the ancient Greek philosopher, known as Aesop."],
|
["summary", "Collection of selected fables from the ancient Greek philosopher, known as Aesop."],
|
||||||
["e", "<id>", "<relay_url>", "<pubkey>"],
|
["a", "<id>", "<relay_url>", "<pubkey>"],
|
||||||
["e", "<id>", "<relay_url>", "<pubkey>"],
|
["a", "<id>", "<relay_url>", "<pubkey>"],
|
||||||
|
["auto-update", "<yes|ask|no>"],
|
||||||
["p", "<pubkey_0>"],
|
["p", "<pubkey_0>"],
|
||||||
["E", "<original_event_id>", "<relay_url>", "<pubkey>"]
|
["E", "<original_event_id>", "<relay_url>", "<pubkey>"]
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user