# Nostr

By [0xhubman.eth](https://paragraph.com/@0xhubman.eth) · 2024-11-19

---

Tired of the Twitter/X drama? Don't know what the heck Mastodon is or how to use it? Do you like ostriches? Well then there is a protocol for you! In this post, we'll actually be veering off the blockchain-specific beaten path and delving into an exciting protocol that can best be described as crypto-adjacent - the [Nostr protocol](https://nostr.com/)! Nostr (short for Notes and Other Stuff Transmitted by Relays) is an exciting protocol that aims to be a fully fleshed out decentralized social network and so much more. As hinted at, Nostr differs from many current decentralized protocols given it does not utilize a blockchain nor issue a native token. Nostr more closely resembles decentralized software developed and released pre-Bitcoin such as the Tor Network and BitTorrent when it first hit the scene. But before we dive into how Nostr functions and achieves decentralization, let's first discuss why Nostr was developed in the first place.

Over the past 5-10 years, social media's role in disseminating news has drastically increased and become most people's de facto source for breaking news. Given this important role social media plays in many people's lives, certain factions, domestic and abroad, have vied for control over the almighty algorithm that shapes people's news feeds. Regardless of how you identify politically, it's widely accepted that the companies running these social media platforms have implicit or explicit views and biases that impact their products at some level, whether for nefarious reasons, pressure from governments, or otherwise. These views and biases range from de-amplification and shadow bans to outright platform bans with little recourse available to users. Additionally, the companies behind these social media platforms built their business models upon harvesting their users' data and selling it to third-parties for targeted advertising. Most users gave these companies their personal data on a silver platter without explicitly opting into these practices, let alone any promise of sharing in the profits from this data harvesting. As we'll discuss below, Nostr helps solve both of these fundamental problems that plague centralized social media platforms.

What Is It?
-----------

Within Nostr's GitHub, the protocol is defined as "the simplest open protocol that is able to create a censorship-resistant global social network once and for all". At its core, Nostr is a messaging protocol. Nostr messages can range from simple text-based messages, like tweets, to more resource-intense messages like high-def image and video files. What makes Nostr so simple (especially compared to most other blockchain-secured networks/protocols) is the fact that the protocol is only composed of two components - clients and relays.

*   Clients are the software by which users can interact with Nostr, such as sending and receiving messages. Think of Nostr clients like Twitter/X's mobile app on your phone. However, there are many different Nostr clients spanning native apps, web apps, and mobile apps available for users to utilize and interact with Nostr. Anyone is free to develop their own Nostr client, and each user is free to choose which Nostr client they use based on their preferred user experience. Furthermore, each user's messaging history will transfer between different clients, given the client is built on top of Nostr and accounts live on the protocol level. Contrast this with the proprietary Twitter/X web app and mobile app that only Twitter/X can develop and is the only option to interact with Twitter/X's servers.
    
*   Relays act as the channels by which messages are sent and received on Nostr, which again DO NOT utilize a blockchain. Instead, these relays function as the servers for hosting Nostr messages. Relays can be spun up and run by anyone and any user can subscribe to a certain relay. Operators of relays have total control over their relays, which you can think of each relay having its own terms of service. Relays can choose which messages to broadcast and if payment is required for hosting/subscribing. Contrast this with Twitter/X's centralized private servers that only Twitter/X can access and have total autonomy over.
    

Aside from clients and relays, the most important and critical component of Nostr are the users themselves! If you remember from above, Nostr can be described as crypto-adjacent - that is because Nostr employs the use of cryptography when creating user 'accounts' at the protocol level. When a user creates an account on Nostr, a public and private key pair is created that represents their account. A user can then only log into their Nostr account and broadcast messages by signing with their private key, and all messages sent via their account are tied to their account's public key. This functions similarly to crypto wallets, where the private key is used to verify ownership and transfer funds associated with the wallet's public address. However, also similar to crypto wallets, if a user's private key is lost or compromised then their Nostr account is also lost or compromised.

Problems Solved
---------------

So now that we have a general idea of how Nostr works, let's shift back to the two problems mentioned above that Nostr aims to fix- Censorships/Bans and Data Privacy.

*   **Censorships/Bans** - Using a recent watershed moment to help illustrate the power of the decentralized relays, imagine every relay on Nostr decided they no longer wanted to broadcast Donald Trump's Nostr messages. Instead of him being completely banned (like he was on Twitter in 2021), Trump could simply create his own Nostr relay that broadcasts his messages. Any user who still wants to read Trump's messages would then subscribe to his relay, and everyone else who no longer wants to read Trump's messages would simply ignore his relay. For better or worse, Trump would be able to say whatever he wanted, whenever he wanted on his relay. Additionally, Trump could decide to allow other users to broadcast their messages on his relay as well to increase the popularity of his relay. So in effect, each relay can be thought of as a micro-Twitter/X with its own set of rules. You might not like the rules of a certain relay, but you always have the option of switching relays or simply operating your own.
    
*   **Data Privacy** - Given the only pieces of information required to create a Nostr account are a public and private key, this removes the need for creating user profiles with excessive amounts of personal information. As such, there's no email address, no phone number, no date of birth, no location data, no contacts list collected when creating an account. Nostr can't harvest user data if user data isn't required in the first place. Additionally, if you remember from the Bitcoin Lightning Network installment, Nostr and the Lightning Network have formed a symbiotic relationship as many prominent figures in the Bitcoin community have embraced Nostr. Now instead of big corporations making money off your posts and content, users have the ability to directly receive tips and subscription fees for their Nostr content via the Lightning Network as it has been natively integrated into many Nostr clients. This union of a free and open messaging protocol (Nostr) with a free and open money protocol (Bitcoin) will be a space to keep an eye on in the future.
    

Now that the possibilities of Nostr are clear, you must be wondering how do I create a Nostr account? Well you're in luck, [this video](https://www.youtube.com/watch?v=kifwECtwjJQ) provides an excellent overview of the Nostr account creation process (spoiler: it's easy) and other tips and tricks to help optimize your Nostr experience. Additionally, below are a few more handy Nostr resources.

*   [Nostr GitHub](https://github.com/nostr-protocol/nostr)
    
*   [List of Nostr clients and popular relays](https://github.com/aljazceru/awesome-nostr)
    
*   [Nostr Explained Visually - YouTube video](https://www.youtube.com/watch?v=yIccRIEr2gQ)
    
*   [How to Setup a Nostr Relay - YouTube video](https://www.youtube.com/watch?v=KahRH_u2UMA)
    

Lastly, below is a succinct summary of Nostr from its GitHub that hits all the major selling points of the protocol:

> _It doesn't rely on trusted central servers, hence it is resilient; it is based on cryptographic keys and signatures, so it is tamperproof; it doesn't rely on P2P techniques, therefore it works._

Until next time!

---

*Originally published on [0xhubman.eth](https://paragraph.com/@0xhubman.eth/nostr)*
