GithubHelp home page GithubHelp logo

nips's Introduction

NIPs

NIPs stand for Nostr Implementation Possibilities. They exist to document what may be implemented by Nostr-compatible relay and client software.

NIP 代表Nostr Implementation Possibilities。它们的存在是为了记录Nostr兼容的中继和客户端软件可以实现什么。

Event Kinds

活动种类

kind description NIP
0 Metadata 元数据 1
1 Short Text Note 简短的文字说明 1
2 Recommend Relay 推荐接力 1
3 Contacts 联系人 2
4 Encrypted Direct Messages 加密的直接消息 4
5 Event Deletion 事件删除 9
7 Reaction 反应 25
8 Badge Award 徽章奖 58
40 Channel Creation 频道创建 28
41 Channel Metadata 渠道元数据 28
42 Channel Message 频道留言 28
43 Channel Hide Message 频道隐藏消息 28
44 Channel Mute User 通道静音用户 28
1984 Reporting 报告 56
9734 Zap Request Zap 请求 57
9735 Zap 电击 57
10000 Mute List 静音列表 51
10001 Pin List 引脚列表 51
10002 Relay List Metadata 中继列表元数据 65
22242 Client Authentication 客户端认证 42
24133 Nostr Connect Nostr连接 46
30000 Categorized People List 分类人物列表 51
30001 Categorized Bookmark List 分类书签列表 51
30008 Profile Badges 个人资料徽章 58
30009 Badge Definition 徽章定义 58
30023 Long-form Content 长篇内容 23
30078 Application-specific Data 特定于应用程序的数据 78
1000-9999 Regular Events 定期活动 16
10000-19999 Replaceable Events 可替换事件 16
20000-29999 Ephemeral Events 短暂的事件 16
30000-39999 Parameterized Replaceable Events参数化可替换事件 33

Message types消息类型

Client to Relay客户端到中继

type description NIP
EVENT事件 used to publish events 用于发布事件 1
REQ 请求 used to request events and subscribe to new updates用于请求事件和订阅新的更新 1
CLOSE 关闭 used to stop previous subscriptions 用于停止以前的订阅 1
AUTH 授权 used to send authentication events 用于发送认证事件 42

Relay to Client中继到客户端

type description NIP
EVENT事件 used to send events requested to clients 用于向客户端发送请求的事件 1
NOTICE注意 used to send human-readable messages to clients 用于向客户端发送人类可读的消息 1
EOSE EOSE used to notify clients all stored events have been sent用于通知客户端所有存储的事件已发送 15
OK 好的 used to notify clients if an EVENT was successful 用于通知客户事件是否成功 20
AUTH 授权 used to send authentication challenges 用于发送身份验证挑战 42

Please update these lists when proposing NIPs introducing new event kinds.

请在提议引入新事件类型的 NIP 时更新这些列表。

When experimenting with kinds, keep in mind the classification introduced by NIP-16.

在尝试种类时,请记住NIP-16引入的分类。

Standardized Tags标准化标签

name value other parameters NIP
e event id (hex) 事件 ID(十六进制) relay URL, marker 1, 10
p pubkey (hex) 公钥(十六进制) relay URL 1
a coordinates to an event 事件的坐标 relay URL 33, 23
r a reference (URL, etc) 参考(URL 等) 12
t hashtag 井号 12
g geohash 地理散列 12
nonce random 随机的 13
subject subject 主题 14
d identifier 标识符 33
expiration unix timestamp (string) unix 时间戳(字符串) 40

Criteria for acceptance of NIPs接受 NIP 的标准

  1. They should be implemented in at least two clients and one relay -- when applicable.

    它们应该在至少两个客户端和一个中继中实现——如果适用的话。

  2. They should make sense.

    它们应该有意义。

  3. They should be optional and backwards-compatible: care must be taken such that clients and relays that choose to not implement them do not stop working when interacting with the ones that choose to.

    它们应该是可选的和向后兼容的:必须小心,以便选择不实现它们的客户端和中继在与选择的客户端和中继交互时不会停止工作。

  4. There should be no more than one way of doing the same thing.

    不应该有超过一种方法来做同一件事。

  5. Other rules will be made up when necessary.

    其他规则将在必要时制定。

License

All NIPs are public domain.

所有 NIP 都是公共领域。

nips's People

Contributors

0xtlt avatar blakejakopovic avatar brugeman avatar cameri avatar dzdidi avatar erikwestra avatar ezicheq avatar fiatjaf avatar giszmo avatar git-sgmoore avatar haozing avatar jb55 avatar jeffthibault avatar kdmukai avatar markharding avatar mikedilger avatar mikeobank avatar monlovesmango avatar mplorentz avatar ok300 avatar randymcmillan avatar scsibug avatar semisol avatar sepehr-safari avatar sistemd avatar staab avatar tiero avatar unclebob avatar vasil9v avatar x1ddos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.