diff options
Diffstat (limited to '32.md')
| -rw-r--r-- | 32.md | 15 |
1 files changed, 13 insertions, 2 deletions
| @@ -23,9 +23,13 @@ or topics respectively. As with NIP-01, a relay hint SHOULD be included when usi | |||
| 23 | Label Tag | 23 | Label Tag |
| 24 | ---- | 24 | ---- |
| 25 | 25 | ||
| 26 | This NIP introduces a new tag `l` which denotes a label, and a new `L` tag which denotes a label namespace. A label MUST include a mark matching an `L` tag. `L` tags refer to a tag type within nostr, or a nomenclature external to nostr defined either formally or by convention. Any string can be a namespace, but publishers SHOULD ensure they are unambiguous by using a well-defined ISO standard or reverse domain name notation. Some examples: | 26 | This NIP introduces a new tag `l` which denotes a label, and a new `L` tag which denotes a label namespace. |
| 27 | A label MUST include a mark matching an `L` tag. `L` tags refer to a tag type within nostr, or a nomenclature | ||
| 28 | external to nostr defined either formally or by convention. Any string can be a namespace, but publishers SHOULD | ||
| 29 | ensure they are unambiguous by using a well-defined ISO standard or reverse domain name notation. Some examples: | ||
| 27 | 30 | ||
| 28 | Namespaces starting with `#` indicate that the label target should be associated with the label's value. This is a way of attaching standard nostr tags to events, pubkeys, relays, urls, etc. | 31 | Namespaces starting with `#` indicate that the label target should be associated with the label's value. |
| 32 | This is a way of attaching standard nostr tags to events, pubkeys, relays, urls, etc. | ||
| 29 | 33 | ||
| 30 | - `["l", "footstr", "#t"]` - the publisher thinks the given entity should have the `footstr` topic applied. | 34 | - `["l", "footstr", "#t"]` - the publisher thinks the given entity should have the `footstr` topic applied. |
| 31 | - `["l", "<pubkey>", "#p"]` - the publisher thinks the given entity is related to `<pubkey>` | 35 | - `["l", "<pubkey>", "#p"]` - the publisher thinks the given entity is related to `<pubkey>` |
| @@ -164,3 +168,10 @@ Publishers can self-label by adding `l` tags to their own non-1985 events. | |||
| 164 | ... | 168 | ... |
| 165 | } | 169 | } |
| 166 | ``` | 170 | ``` |
| 171 | |||
| 172 | Other Notes | ||
| 173 | ----------- | ||
| 174 | |||
| 175 | When using this NIP to bulk-label many targets at once, events may be deleted and a replacement | ||
| 176 | may be published. We have opted not to use parameterizable/replaceable events for this due to the | ||
| 177 | complexity in coming up with a standard `d` tag. | ||