Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for The Nostr Protocol - NIP01
Melvin Carvalho
Melvin Carvalho

Posted on • Edited on

     

The Nostr Protocol - NIP01

What is Nostr?

Nostr stands for "Notes and Other Stuff Transmitted by Relays". It is a new type of social experience on the web where "dumb" relays can be used to send messages from one user to another, in a secure, censorship resistant manner.

Since it is not P2P it has a chance of working.

Nostr Relays

Relays are lightweight, easy to set up, and can run in as little as 5MB of memory. A list of relays can be foundhere.

How can I try Nostr?

Nostr can be run on a number of clients. They can be run on your own machine, or on a public instance. Here is a list ofclient software and a list ofrunning instances.

For example, you can try out Nostrhere.

You can follow my identityed1d0e1f... and discover new users.

A Brief Introduction to the Nostr Protocol?

Nostr

Nostr is very simple. Each user gets an EC key pair, which they use to sign Events. An Event has a unique id and is signed by the nostr public key using aSchnorr Signature.

The event has is of a certain kind/type, has content, a timestamp, and additional tags. The event id is the sha256 of those fields. Events can then be sent to, and requested by, relays over websockets. The diagram above gives a visualization of the core event structure.

The core protocol is describedhere and can be extended via NIPs.

NIPs are a way to extent the base Nostr functionality. Already there are NIPs for encrypted chat, contact management, profiles, relay management, Tor relays, Open Timestamps and much more.

I am personally working on a chat client depicted below.

Image description

Summary

Nostr is a new kind of protocol that that provides censorship resistant communications on the internet

Dumb relays forward messages from one user to another. It is not P2P, so it has a chance of working.

I've touched on some of the basic concepts of Nostr in this post, and will explore the protocol in greater depth, in future posts.

Links

Top comments(2)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
wilsonsilva profile image
Wilson Silva
  • Joined

That diagram is GORGEOUS!

CollapseExpand
 
snazzybytes profile image
SnazzyBytes
  • Joined

0 comments, feels lonely in here 😆
Was just poking around the web regarding NOSTR and I did find your short summary useful so appreciate it bro! Any more brain dumps on bitcoin/nostr/lightning anything? Do it!!!!!

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Mathematician and web developer
  • Joined

More fromMelvin Carvalho

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp