What is Nostr?
Decentralized Social Media and the Future of Online Communication
Nostr is a decentralised communication protocol that enables users to create, broadcast, and receive messages without the need for intermediaries. It operates on a decentralised network, allowing users to communicate directly with one another without the restrictions and censorship often found on centralised platforms. Prioritising user privacy by allowing messages to be encrypted and sent directly from sender to recipient, and it is built to handle an enormous number of users and messages, making it a viable alternative to current messaging platforms.
Nostr isn’t a single app or website – it’s an open network of many websites apps and servers (called relays) that anyone can run. There’s no central company or server in charge.
Additionally, because Nostr is a Free Open Source Protocol, it enables developers to create their own applications and interfaces, fostering innovation and competition. It doesn't rely on any trusted central server, hence it is resilient; it is based on cryptographic keys and signatures, so it is tamper proof; it does not rely on P2P (Peer To Peer ) techniques.
a decentralised social network protocol designed to provide a censorship-resistant social media experience by avoiding reliance on centralised servers.
By cutting out the middlemen, Nostr empowers users to communicate directly, potentially shifting the balance of power back to the users and away from the tech giants that currently dominate the social media landscape.
What is Nostr
Nostr stands for "Notes and Other Stuff Transmitted by Relays" which is designed to be a resilient, decentralised protocol for social networking, allowing users to publish content and communicate without relying on a centralised server. This design approach helps in preventing censorship and ensures data integrity.
A typical use case associated with Nostr, is Social Media. However, this is probably one of the most boring and uninteresting example of what is possible with the protocol, primarily because it is capable of so much more and developers have not even started to explore its capabilities.
Key features of Nostr
- Decentralisation: Nostr operates on a decentralised network, meaning that there is no single entity controlling the flow of information. This eliminates the risk of data breaches, censorship, and the concentration of power in the hands of a few corporations.
- Censorship-Resistance: Due to its decentralised nature, Nostr is designed to be resilient against censorship. There is no central authority that can remove content or ban users from the entire network.
- Privacy: Nostr prioritises user privacy by allowing messages to be encrypted and sent directly from sender to recipient. This ensures that user data is not stored or monitored by third-party servers, providing an added layer of security and anonymity.
- Digital Identity: Users on Nostr are identified by public keys, a cryptographic identity solution that ensures privacy and security. Each user’s content and interactions are signed with their private key, proving the authenticity and ownership of the data.
- Scalability: Nostr is built to handle an enormous number of users and messages, making it a viable alternative to current social media platforms that often struggle with scalability.
- Customisability: Nostr allows developers to create their own applications and interfaces, providing users with a diverse range of options for interacting with the platform. This fosters innovation and competition, driving the development of new and exciting features.
- No Middlemen: By cutting out the middlemen (i.e., social media platforms), Nostr empowers users to communicate directly with one another, without the need for intermediaries. This could potentially shift the balance of power back to the users and away from the tech giants that currently dominate the social media landscape.
- Interoperability Users can switch between different clients while maintaining their identity and data, thanks to the decentralised structure of the protocol.
- Bitcoin integration Nostr supports Bitcoin Lightning Network for fast and secure payments, making it possible to tip creators or pay for services directly within the network.
As Nostr continues to gain traction and adoption, it has the potential to reshape the way we interact online. While it's still early days for the protocol, the potential for a decentralised, privacy-focused social media platform is undeniable.
How does nostr work
Nostr is a "dumb" solution to a complex problem
Nostr fundamentally consists of two main components:
- Relays
- Clients
Which are underpinned by the basic principles of the protocol operation:
- Nostr is influenced by blockchain technology, not entirely based on it.
- IPFS for data storage.
- Public and private key encryption gives users control over their data.
- No central servers - a fully decentralized network.
Public & Private keys
Instead of using server-based authentication, Nostr leverages cryptography in order reduce the role of servers from powerful hubs to disposable, user-aligned repositories.
Nostr make use of public & private key encryption, which distinguishes it from traditional social networks that use passwords and email, and Nostr accounts are managed by the account holder, and there is no central entity for password recovery.
The only thing a user needs to do to join the Nostr network is generate a secp256k1 cryptographic key pair. Key pairs can be used to create digital signatures of content, which are then embedded in data structures called "events" alongside the user's public key.
Top Tip
The private key is the sole method of account recovery, and losing it means losing access to the associated Nostr account.
The private key is stored in a secure place chosen by the user. It is worth noting that the loss of a private key can lead to the loss of data, as it is the only important signifier of your identity.
Relays
Nostr is a decentralised protocol that provides censorship-resistant communications on the internet. Nostr uses relays to forward messages from one user to another. Relays are effectively nodes on the network, acting as a go-between for storing and broadcasting public messages.
The ethos of a relay is neutrality. They are designed not to discriminate among messages or differentiate among users. Their fundamental duty is to ensure seamless communication within the expansive, decentralised network.
Anyone can run a relay, you don't need to obtain any permission to do so. You can simply start up a spare computer connect it to the internet, install relay software and you're up and running.
This network is totally decentralised, making it virtually impossible to completely remove a user. If one of the relays goes down, your data will not be affected. This provides a certain level of resiliency, which is why Nostr allows you to connect to several relays at the same time.
Clients
The Nostr client is simply an interface for viewing messages sent over the Nostr protocol. Therefore, once the keys have been created, users can securely log in to any of the proposed clients.
There is no limit to the number of relays a Nostr client can subscribe to. A client can connect to as many relays as it wants, allowing it to receive updates from a wide range of sources and improving the reliability and resilience of the client.
By subscribing to multiple relays, a Nostr client can:
- Improve reliability: By connecting to multiple relays, a client can ensure that it receives updates even if one or more relays become unavailable.
- Increase redundancy: Multiple relays provide an additional layer of redundancy, ensuring that the client can continue to operate even if one or more relays fail or become compromised.
- Improve performance: By connecting to multiple relays, a client can receive updates more quickly and efficiently, as it can request updates from multiple sources simultaneously.
- Enhance privacy: By connecting to multiple relays, a client can obscure its true location and identity, as it can receive updates from multiple sources without revealing its connection to a single relay.
What the strengths of an Open Protocol
Why we need Nostr
Lets face it, Social Media in its current form is broken. What started out as efforts and intentions to connect people and enabling them to communicate across the globe, has turned into a cesspit of vitriol, tribal wars, mass surveillance and state over-reach.
The primary reasons for this are:
- Current implementations of social media rely heavily on using your attention to ads.
- Collect massive amount of your personal data to sell and to be used for commercial gain.
- Implement all sorts of bizarre techniques to keep you addicted to their platform. You attention converts to cash for the platforms.
- The platforms have complete control over who can participate and who and how are censored.
- Is completely overrun with spam, bots and AI garbage.
Nostr is a revolutionary protocol for social media because it provides a decentralised, monetizable, incentive-aligned, market-driven, and open-source platform for social interaction. Nostr has the potential to create a new era of social media that prioritises user sovereignty and free market competition.
What problems does Nostr solve?
De-platforming and cancellation
A single relay can block a user from publishing anything on it, but that has no effect on the user as they can still publish to other relays. Since users are identified by a public key, they don't lose their identities and their follower base if they are banned from a relay.
Instead of requiring users to manually type new relay addresses, whenever someone you're following posts a relay recommendation, the client should automatically add that to the list of relays it will query.
If someone is using a relay to publish their data but wants to migrate to another one, they can publish a server recommendation to that previous relay and go.
If someone gets banned from many relays such that they can't get their server recommendations broadcast , they may still let some close connections know through other means with which relay they are publishing now. Then, these close connections can publish server recommendations to that new server, and slowly, the old follower base of the banned user will begin finding their posts again from the new relay.
All of the above is valid too for when a relay ceases its operations.
Censorship resistance
Each user can publish their updates to any number of relays. The fact that you can, and I would argue that you should host and broadcast from your own relay, even several of your own relays. Simply means that you are not constrained by any one platform.
Spam
if spam becomes a concern for a relay, it can require payment for publication or some other form of authentication, such as an email address or phone, and associate these internally with a pubkey that then gets to publish to that relay — or other anti-spam techniques, like hashcash, captchas or Lightning Payments.
If a relay is being used as a spam vector, it can easily be unlisted by clients, which can continue to fetch updates from other relays.
Data Storage
For the network to stay healthy, there is no need for hundreds of active relays. In fact, it can work just fine with just a handful, given the fact that new relays can be created and spread through the network easily in case the existing relays start misbehaving. Therefore, the amount of data storage required, in general, is relatively less than Mastodon or similar software.
Taking into considering different outcomes, for instance, one in which there exist hundreds of niche relays run by amateurs, each relaying updates from a small group of users. The architecture scales just as well: data is sent from users to a single server, and from that server directly to the users who will consume that. It doesn't have to be stored by anyone else. In this situation, it is not a big burden for any single server to process updates from others, and having amateur servers is not a problem.
Conclusion
For those interested in exploring Nostr further, the Nostr Protocol GitHub repository provides a wealth of information, including documentation, code, and resources for developers and users alike.
Stay tuned as we follow the evolution of Nostr and the potential it holds for the future of online communication. One thing is certain: the rise of Nostr marks a significant shift in the social media landscape, and it will be exciting to see how it unfolds.