Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NIP-12: add 'delegation' exception and 'l' for language #81

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions 12.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ Rationale

The decision to reserve only single-letter tags to be usable in queries allow applications to make use of tags for all sorts of metadata, as it is their main purpose, without worrying that they might be bloating relay indexes. That also makes relays more lightweight, of course. And if some application or user is abusing single-letter tags with the intention of bloating relays that becomes easier to detect as single-letter tags will hardly be confused with some actually meaningful metadata some application really wanted to attach to the event with no spammy intentions.

Exceptions
---------

There are certain tags that are multi-letter and still queryable:
* `"delegation"` - see [NIP-26: Delegated Event Signing](26.md)

Suggested Use Cases
-------------------

Expand All @@ -40,3 +46,4 @@ Motivating examples for generic tag queries are provided below. This NIP does n
* Decentralized Commenting System: clients can comment on arbitrary web pages, and easily search for other comments, by using a `r` ("reference", in this case an URL) tag and value.
* Location-specific Posts: clients can use a `g` ("geohash") tag to associate a post with a physical location. Clients can search for a set of geohashes of varying precisions near them to find local content.
* Hashtags: clients can use simple `t` ("hashtag") tags to associate an event with an easily searchable topic name. Since Nostr events themselves are not searchable through the protocol, this provides a mechanism for user-driven search.
* Language-specific Posts: clients can use a `l` ("language") tag to associate a post with a particular language (see [browser standard for language codes](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/language)). This allows clients to search for posts by language.