Add l and L tags for labelling events

This commit is contained in:
Michael Jurkoic 2024-01-19 18:53:06 -06:00
parent 469f59347a
commit 0e3ef50e5c

5
62.md
View File

@ -14,6 +14,7 @@ An event of kind `32000` SHALL serve to authenticate an unversioned object host
- The `d` tag MUST contain a unique identifier for the object. This identifier SHOULD be a hash of the object itself to provide an additional means of validating its authenticity.
- The `r` tag MUST indicate one or more URLs at which the object can be found.
- Tags `l` and `L` MAY be used to indicate a context or namespace for the object, as defined in [NIP-32](https://github.com/nostr-protocol/nips/blob/master/32.md).
- The `m` tag MAY be included to indicate the MIME type of the object.
- The `client` tag, as defined in [NIP-89](https://github.com/nostr-protocol/nips/blob/master/89.md), MAY be included to indicate a preferred client for handling the Nostr event and its associated object.
- The `hash` tag MUST be used when the object's unique identifier is a hash to indicate the hash method used.
@ -27,6 +28,8 @@ An event of kind `32000` SHALL serve to authenticate an unversioned object host
"tags": [
["d", <unique identifier>],
["r", <comma-separated urls>],
["l", <label>, <label namespace>],
["L", <label namespace>],
["m", <MIME type>],
["client", <name>, <address>, <relay hint>],
["hash", <hash method>]
@ -57,6 +60,8 @@ An event of kind `32001` SHALL serve to authenticate a versioned object hosted b
["r", <comma-separated urls>],
["a", <previous event id>, <relay hint>],
["a", <root event id>, <relay hint>],
["l", <label>, <label namespace>],
["L", <label namespace>],
["m", <MIME type>],
["client", <name>, <address>, <relay hint>],
["hash", <hash method>]