UNDER DEVELOPMENT - DRAFT
Skip to main content
nostr101
Foundations track page 1 of 6 NIP-01 @ 656cecc

What Nostr is not

NIP-01, the base specification, describes signed messages called events and the servers, called relays, that pass them around. Anything else you expect from Nostr, such as permanent storage, comes from the apps and relays you choose, so a wrong assumption makes you expect a promise that Nostr does not make. This page checks four common assumptions against the NIP-01 text. They are that Nostr is a blockchain, a single company's service, a guaranteed archive, or only a social network.

800 words4 min0 explainersSpec: NIP-01
Anchor text · read alongside terms stated per work · free online
NIP-01 · anchor
Nostr Implementation Possibilities (NIPs)
the contributors to nostr-protocol/nips
"Basic protocol flow description" — the event, the three messages a client sends, the five messages a relay sends, and the kind ranges that say which events relays are expected to store. Every claim on this page is checked against that text.
Read the chapter →

It is not a blockchain

NIP-01 says “the only object type that exists is the event.”1 NIP-01 defines only the event, a signed JSON object with seven fields, so there is no chain of blocks to order events. This matters because on a blockchain every participant agrees on one history, and on Nostr nothing in the base specification creates that agreement.

The specification also contains no way for relays to agree with each other. A client can send a relay three kinds of message (EVENT, REQ and CLOSE), and a relay can send a client five (EVENT, OK, EOSE, CLOSED and NOTICE). The eight messages are defined between a client and a relay, and NIP-01 defines no message for relays to exchange events with each other. Each relay decides on its own whether to accept an event, and the OK message reports that one relay’s decision.

So there is no global state that every participant shares. Two relays can hold different sets of events, and nothing in NIP-01 reconciles them. An operator could copy events between relays by other means, but the base protocol does not define that.

Ordering has the same limit. The only time field is created_at, which the author writes into the event. A relay can reject an event whose date is too far from its own clock, and NIP-01 gives that case an example invalid: reason.

It is not one service

A Nostr identity is a keypair, and NIP-01 says “each user has a keypair.” NIP-01 gives no server a role in issuing keys. Each event carries its author’s public key and a signature, wherever the event is later found.

The specification names no relay that every client must use. It says “relays expose a websocket endpoint to which clients can connect,” and that a client “SHOULD open a single websocket connection to each relay.” Every relay is free to set its own admission rules. The example OK messages in NIP-01 include blocked: you are banned from posting here and a blocked: reason that asks you to register your pubkey on the relay’s own website, so a relay can ban you or require registration.

The result is that any single relay can refuse you, but the protocol gives no relay the power to remove your key. If one relay refuses your events, you can send them to another. The next lessons show how that choice decides what you and your readers see.

It does not guarantee storage

NIP-01 sorts events into four groups by kind number. Each group says what a relay is expected to keep:

Kind rangeGroupWhat NIP-01 says about storage
1, 2, 4–44 and 1000–9999Regular“Expected to be stored by relays.”
0, 3 and 10000–19999ReplaceableOnly the latest event for each pubkey and kind “MUST be stored.” Older versions “MAY be discarded.”
20000–29999Ephemeral“Not expected to be stored by relays.”
30000–39999AddressableOnly the latest event for each kind, pubkey and d tag value “MUST be stored.” Older versions “MAY be discarded.”

Even a regular event comes with only an expectation. When a client sends a REQ, the relay “SHOULD return events that match the filter,” and for the limit property NIP-01 says “returning fewer events is acceptable.” A relay can also answer a publish with ["OK", id, false, reason], and the listed reasons include rate-limited, restricted, pow and error. NIP-01 introduces the kind ranges as “a convention,” and the table shows that convention, not a guarantee.

Deleting is no stronger. A kind 5 deletion request asks relays to drop an event, and NIP-09 words it as “relays SHOULD delete or stop publishing” the event. The same NIP says that clients “MAY choose to inform the user that their request for deletion does not guarantee deletion because it is impossible to delete events from all relays and clients.”2

If you need an event to last, you need a relay that keeps it, or a copy of your own. The protocol does not promise either one.

It is not only a social network

NIP-01 defines one kind by itself, kind 0, a user’s metadata with fields such as a name, a short bio and a picture. It leaves the rest of the kind numbers to other documents: “Each NIP may define the meaning of a set of kinds that weren’t defined elsewhere.” Its own example is that NIP-10 “specifies the kind:1 text note for social media applications.”

So a text note is one agreement that sits on top of the base protocol. Other NIPs define other kinds for other jobs. The README says nothing forces any software to implement any NIP, although NIP-01 itself is tagged mandatory.3 The NIP index lists the kinds each NIP assigns.

Next, Everything on Nostr is an event takes the one object that NIP-01 defines and reads a real one field by field.

Notes

  1. The text is NIP-01 at the revision this site last indexed. A later revision of NIP-01 changes details of filters and of the OK and CLOSED messages, and none of the sentences this page relies on. Where this page and the NIP differ, the NIP wins.NIP-01
  2. NIP-09 also says relays should keep sharing the deletion request itself, "as clients may already have the event that's intended to be deleted."NIP-09
  3. The NIPs repository README says "Nothing forces any software to implement any NIP." Each app picks the subset it needs.NIPs README

Source & license

This page adapts no licensed material. It is original work by Delta Gamma LLC and is published under CC BY-SA 4.0; the figures it reports are separately dedicated to the public domain, below.

nostr101 adds no normative claims. Where this page and a NIP disagree, the NIP is correct and this page is a bug. Every page states the revision it was written against: NIP-01 @ 656cecc.

Numbers, titles and kind assignments come from the NIPs repository and belong to its contributors, who state that all NIPs are public domain. This page asserts no license over that text. Its own prose is CC BY-SA 4.0; attribute to nostr101.com and to the NIPs contributors.