惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
MyScale Blog
MyScale Blog
F
Fortinet All Blogs
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Stack Overflow Blog
Stack Overflow Blog
MongoDB | Blog
MongoDB | Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Blog — PlanetScale
Blog — PlanetScale
Jina AI
Jina AI
T
Tenable Blog
S
Securelist
S
Schneier on Security
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Tor Project blog
C
Cisco Blogs
The Hacker News
The Hacker News
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
O
OpenAI News
V
Vulnerabilities – Threatpost
V
Visual Studio Blog
Security Latest
Security Latest
T
Threatpost
博客园 - 三生石上(FineUI控件)
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
H
Hacker News: Front Page
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
IT之家
IT之家
I
InfoQ
博客园_首页
Apple Machine Learning Research
Apple Machine Learning Research
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
A
About on SuperTechFans
Know Your Adversary
Know Your Adversary
Martin Fowler
Martin Fowler
Forbes - Security
Forbes - Security
F
Full Disclosure
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Google DeepMind News
Google DeepMind News
Hacker News - Newest:
Hacker News - Newest: "LLM"
P
Privacy International News Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
C
CERT Recently Published Vulnerability Notes
N
News and Events Feed by Topic
V
V2EX
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
Threat Research - Cisco Blogs
S
Secure Thoughts
量子位
博客园 - 【当耐特】

🛫Qifei's Blog

Python的模块构建和调用方式 - 🛫Qifei's Blog 如何选择搭建梯子用的VPS? - 🛫Qifei's Blog Hexo博客页面引入足迹地图 - 🛫Qifei's Blog 机器学习和scikit-learn库基础学习笔记 - 🛫Qifei's Blog 利用国内服务器加速v2ray访问速度和规避检查 - 🛫Qifei's Blog Matplotlib_Bar3d绘制彩色带颜色标尺的3D柱形图 - 🛫Qifei's Blog Linux后台运行nostr虚荣公钥的挖掘 - 🛫Qifei's Blog Hexo博客添加Nostr_NIP-05认证 - 🛫Qifei's Blog Onedrive_API大文件上传记录 - 🛫Qifei's Blog 反爬虫-如何检测有没有使用Puppeteer - 🛫Qifei's Blog Vuejs学习笔记 - 🛫Qifei's Blog OpenOffice连接Mysql数据库 - 🛫Qifei's Blog 安卓ToyVPN服务端从零开始读 - 🛫Qifei's Blog 在控制器中用JS验证CSS_Selector和Xpath - 🛫Qifei's Blog RWTH自习室自动预定程序(RWTH_Lernraum) - 🛫Qifei's Blog RWTH自习室自动预定程序(RWTH_Lernraum) - 🛫Qifei's Blog 如何利用Selenium实现更加高效的爬虫 - 🛫Qifei's Blog Python如何准确的计算Http请求中的Content_Length - 🛫Qifei's Blog 破解图片等资源跨域和防盗链阻拦 - 🛫Qifei's Blog Selenium-Webdriver接口 - 🛫Qifei's Blog
Nostr_NIP-05认证服务简介和配置 - 🛫Qifei's Blog
Qifei · 2023-02-06 · via 🛫Qifei's Blog

1. NIP-05简介

NIP-05认证服务,通过验证域名的持有身份,就可以在支持NIP-05的客户端里展示一个和微博Twitter认证类似的V的小图标。其基本原理是,域名持有者,在域名路径下返回一个json格式的数据内容,域名路径类似于:https://sci.ci/.well-known/nostr.json?name=qifei,点击此链接,你能看到返回的json文本为,

1
2
3
4
5
{
"names": {
"qifei": "dca5a66fed9db68c042d40e944619d1be0a6c14147f6aa54b5f02efea5551d90"
}
}

在Nostr客户端中,例如Damus,配置nip05认证的格式为 qifei@sci.ci,这里的qifei我们叫做name,sci.ci为域名。

这是我的Nostr账户的认证例子。

2. 免费认证服务

如果你没有自己的域名或者不想更改你的web服务器内容,那么你可以使用现有的免费认证服务,nost.vip提供了这项服务,在nip05认证信息中直接填写形如以下字符的内容,

npub.....@nost.vip

这里npub开头的字符串是你的nostr账户id,比如我的账户id是npub1mjj6vmldnkmgcppdgr55gcvar0s2ds2pglm254947qh0af24rkgqwelkyh

对应认证信息为

npub1mjj6vmldnkmgcppdgr55gcvar0s2ds2pglm254947qh0af24rkgqwelkyh@nost.vip

这样我就有了nost.vip的认证

3. Github Pages认证

如果你没有域名,或者有自己的域名但没有服务器,那么你可以使用github pages的域名,例如我的github page为xieqifei.github.io,我就可以认证到这个域名下,当然也可以在github设置中添加自定义域名。

这里默认你已经了解github pages并用它创建过自己的博客页面。如果你不了解github page,你可能需要其他的功课。一个简单的介绍,github pages可以将你命名形如为your-username.github.io的仓库转为网站目录,你在里面防止的任何文件都可以以your-username.github.io加路径的方式访问。

现在开始创建一个,以你用户名开头并以.github.io结尾的仓库,如果已有可以忽略。

具体步骤如下:

  1. 在仓库里新建一个**.**well-known的文件夹
  2. well-known文件夹中新建一个nostr.json文件
  3. 进入网页https://damus.io/key/ 将你以npub开头的damus key转为hex 格式的hex key
  4. nostr.json文件中放入以下内容
1
2
3
4
5
{
"names": {
"yourname": "hex key"
}
}
  1. 修改yourname为任意字符串,hex key为第三步转换的结果。保存nostr.json
  2. 在仓库的根目录中创建一个文件名为**.nojekyll的文件,该文件.nojekyll**将允许 GitHub 页面为静态 json 文件提供服务。
  3. 之后前往 GitHub 存储库设置以启用 GitHub 页面。

现在你应该可以通过访问 your-username.github.io/.web-known/nostr.json获取到用于nip05认证的json信息了。

在nostr客户端中设置形如yourname@your-username.github.io你就拥有了V认证。

你也可以在github page中配置自己的域名,并通过设置 yourname@yourdomain.com,在客户端中展示你自己域名的认证。