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兼容的中继和客户端软件可以实现什么。
-
NIP-01: Basic protocol flow description
基本协议流程描述
-
NIP-02: Contact List and Petnames
联系人列表和昵称
-
NIP-03: OpenTimestamps Attestations for Events
事件的 OpenTimestamps 证明
-
NIP-04: Encrypted Direct Message
加密私信
-
NIP-05: Mapping Nostr keys to DNS-based internet identifiers
将 Nostr 密钥映射到基于 DNS 的互联网标识符
-
NIP-06: Basic key derivation from mnemonic seed phrase
助记种子短语的基本密钥推导
-
NIP-07:
window.nostr
capability for web browserswindow.nostr网络浏览器的能力
-
处理提及
-
事件删除
-
NIP-10: Conventions for clients' use of
e
andp
tags in text events客户端在文本事件中使用
e
和p
标签的约定 -
NIP-11: Relay Information Document
中继信息文档
-
通用标签查询
-
工作量证明
-
NIP-14: Subject tag in text events.
文本事件中的主题标签
-
NIP-15: End of Stored Events Notice
存储事件的结束通知
-
事件处理
-
NIP-19: bech32-encoded entities
bech32编码实体
-
命令结果
-
nostr:
URL 方案 -
NIP-22: Event
created_at
Limits事件
created_at
限制 -
长形式内容
-
反应
-
NIP-26: Delegated Event Signing
委托事件签名
-
公共聊天
-
NIP-33: Parameterized Replaceable Events
参数化可替换事件
-
敏感内容
-
过期时间戳
-
NIP-42: Authentication of clients to relays
客户端向中继的身份验证
-
Nostr 连接
-
关键字过滤
-
列表
-
报告
-
闪电 Zap
-
徽章
-
中继列表元数据
-
NIP-78: Application-specific data
应用程序特定数据
活动种类
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 |
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 |
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引入的分类。
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 |
-
They should be implemented in at least two clients and one relay -- when applicable.
它们应该在至少两个客户端和一个中继中实现——如果适用的话。
-
They should make sense.
它们应该有意义。
-
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.
它们应该是可选的和向后兼容的:必须小心,以便选择不实现它们的客户端和中继在与选择的客户端和中继交互时不会停止工作。
-
There should be no more than one way of doing the same thing.
不应该有超过一种方法来做同一件事。
-
Other rules will be made up when necessary.
其他规则将在必要时制定。
All NIPs are public domain.
所有 NIP 都是公共领域。