Awesome nostr

简介: 该文章是关于Nostr协议的详细介绍,包括其去中心化社交网络的构建方式、工作原理、中继(relays)的作用,以及与Farcaster的比较,并提供了一些可用的Nostr客户端和中继实例。

What is Nostr

Nostr is a protocol built using self-owned account/identities so that it enables us to create ‘decentralized’ social networks and even other types of solutions.

“nostr” stands for “Notes and Other Stuff Transmitted by Relays” and
is an open protocol for censorship-resistant global networks created
by @fiatjaf. The simplest open protocol that is able to create a
censorship-resistant global “social” network once and for all.

It doesn’t rely on any trusted central server, hence it is resilient; it is based on cryptographic keys and signatures, so it is tamperproof; it does not rely on P2P techniques, therefore it works.
The Nostr social network is build much like twitter, where you can create posts ( like tweets), like posts, follow someone or unfollow them, retweet/repost. Normally the term ‘post’ or ‘note’ is used to refer to creating a post on the nostr social network.

How does Nostr work?

Using Nostr means using one of its clients to access the Nostr network. There are two components: clients and relays.

  1. User is identified by a public key. Every post is signed.
  2. To publish something, you write a post, sign it with your key and send it to multiple relays (servers hosted by someone else, or yourself). Clients fetch data from relays of their choice and publish data to other relays of their choice.
  3. To get updates from other people, you ask multiple relays if they know anything about these other people.

Relays

  • Relays are (so far) application agnostic. You can run your own or use any or all of the public instances.
  • Anyone can run a relay.
  • A relay is very simple and dumb. It does nothing besides accepting posts from some people and forwarding to others.
  • Relays don’t have to be trusted. Signatures are verified on the client side.A relay doesn’t talk to another relay, only directly to users.

wss://rsslay.fiatjaf.com read write
wss://nostr-pub.wellorder.net read write
wss://expensive-relay.fiatjaf.com read write
wss://relayer.fiatjaf.com read write
wss://nostr-relay.freeberty.net read write
wss://nostr.bitcoiner.social read write

Clients

  • Everybody runs a client. It can be a native client, a web client, etc.
  • Every client validates these signatures.
    在这里插入图片描述

Nostr vs Farcaster

Both Nostr and Farcaster use relays (called “hubs” in Farcaster) to store and transmit social data (like posts) to users (who run software, called “clients”). Farcaster uses the Ethereum architecture (eg, uses ethereum key-pairs for accounts), while Nostr does not use a blockchain (though you see a lot of lightning transactions, and theoretically could support any blockchain).
在这里插入图片描述

Refernce

相关文章
|
4月前
|
JavaScript
vue element plus Badge 徽章
vue element plus Badge 徽章
68 0
|
4月前
|
JavaScript
Vue 项目使用 iconfont
Vue 项目使用 iconfont
171 0
nuxt3:vue-dompurify-html
nuxt3:vue-dompurify-html
353 0
|
23天前
|
Rust JavaScript 前端开发
awesome nostr
该文章是一个关于Nostr协议及其生态系统的全面资源列表,包括协议概述、中继(Relay)实现、客户端、库、桥接和网关、工具、教程以及社区链接等多个方面的详细信息。
11 2
|
23天前
|
资源调度 JavaScript 应用服务中间件
HTML、WebStrom和Vue使用
HTML、WebStrom和Vue使用
20 3
|
2月前
|
JavaScript
vue 代码高亮 highlight.js vue-highlightjs
vue 代码高亮 highlight.js vue-highlightjs
26 0
|
4月前
|
JavaScript
Vue-Awesome-Swiper基本能解决你所有的轮播需求(vue的问题)
Vue-Awesome-Swiper基本能解决你所有的轮播需求(vue的问题)
435 1
|
11月前
|
前端开发 JavaScript
vue-cli3 引入 font-awesome
vue-cli3 引入 font-awesome
196 0
|
前端开发
Bootstrap4 图标无法使用,使用font-awesome代替
前言 最近正在练手一个Angular4的项目,需要用到矢量图标相关的功能,但是发现Bootstrap4 图标功能失效,进过调查发现是图标功能被移除bootstrap包下,所以在这里记录一下。 正文 首先将font-awesome进行安装: npm install --save font-awesome 然后在angular.json中进行配置,找到styles,将下方位置进行添加: "./node_modules/font-awesome/css/font-awesome.css" 这样在项目中正常使用就行。
2102 0