upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/32.md
diff options
context:
space:
mode:
authorJonathan Staab <shtaab@gmail.com>2023-06-07 16:03:05 -0700
committerJonathan Staab <shtaab@gmail.com>2023-06-13 09:31:15 -0700
commit363d112e335c13f4fa1c113e2418db1102c58ed5 (patch)
treea7a9b8795e9d7d7493961e4a4d6646a47d10c03b /32.md
parent114302517fa5b4ea499c5725f8a6aab675c36e24 (diff)
Add a note about PREs, update NIP 36 to point to NIP 32
Diffstat (limited to '32.md')
-rw-r--r--32.md15
1 files changed, 13 insertions, 2 deletions
diff --git a/32.md b/32.md
index 1939555..b572c13 100644
--- a/32.md
+++ b/32.md
@@ -23,9 +23,13 @@ or topics respectively. As with NIP-01, a relay hint SHOULD be included when usi
23Label Tag 23Label Tag
24---- 24----
25 25
26This 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: 26This NIP introduces a new tag `l` which denotes a label, and a new `L` tag which denotes a label namespace.
27A label MUST include a mark matching an `L` tag. `L` tags refer to a tag type within nostr, or a nomenclature
28external to nostr defined either formally or by convention. Any string can be a namespace, but publishers SHOULD
29ensure they are unambiguous by using a well-defined ISO standard or reverse domain name notation. Some examples:
27 30
28Namespaces 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. 31Namespaces starting with `#` indicate that the label target should be associated with the label's value.
32This 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
172Other Notes
173-----------
174
175When using this NIP to bulk-label many targets at once, events may be deleted and a replacement
176may be published. We have opted not to use parameterizable/replaceable events for this due to the
177complexity in coming up with a standard `d` tag.