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

推荐订阅源

W
WeLiveSecurity
The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
Microsoft Azure Blog
Microsoft Azure Blog
The Register - Security
The Register - Security
Stack Overflow Blog
Stack Overflow Blog
博客园 - 三生石上(FineUI控件)
T
Threat Research - Cisco Blogs
S
SegmentFault 最新的问题
V2EX - 技术
V2EX - 技术
Hacker News: Ask HN
Hacker News: Ask HN
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
P
Proofpoint News Feed
J
Java Code Geeks
Microsoft Security Blog
Microsoft Security Blog
M
MIT News - Artificial intelligence
AI
AI
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
P
Proofpoint News Feed
Hacker News - Newest:
Hacker News - Newest: "LLM"
B
Blog
N
News and Events Feed by Topic
N
News | PayPal Newsroom
Google DeepMind News
Google DeepMind News
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
WordPress大学
WordPress大学
C
Cybersecurity and Infrastructure Security Agency CISA
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 【当耐特】
U
Unit 42
腾讯CDC
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The Cloudflare Blog
H
Help Net Security
Recent Announcements
Recent Announcements
P
Privacy & Cybersecurity Law Blog
IT之家
IT之家
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Security Archives - TechRepublic
Security Archives - TechRepublic
L
LINUX DO - 热门话题
Martin Fowler
Martin Fowler
MongoDB | Blog
MongoDB | Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
H
Heimdal Security Blog
博客园 - 聂微东
S
Securelist
大猫的无限游戏
大猫的无限游戏
Cloudbric
Cloudbric
Cisco Talos Blog
Cisco Talos Blog

nostr

为什么是 Nostr? - V2EX 总结: 2025 年, nostr 如今怎么样了 - V2EX nostr 和 qtox 之类的东西真的有人坚持用么? - V2EX Nostr Relay - V2EX nostter - V2EX V2EX 的 Social Settings 现在可以填入 nostr 用户名,并在个人主页上展示 - V2EX 有没有 ios 客户端推荐 - V2EX 一篇搭建基于闪电网络的付费 nostr relay 的教程 - V2EX 一个想法:可以把 nostr relays 当作一个巨型的公网上的消息队列基础架构来用? - V2EX Nostr-新一代的去中心化社交协议 - V2EX v2ex.com/go/nostr - V2EX 用了几天 nostr/damus 浅聊一下使用逻辑(和 Twitter 有什么区别) - V2EX 一片简单的 Nostr 学习笔记 - V2EX nostr 不依赖于 p2p,那它是怎样实现去中心化的? - V2EX 这里好像没有什么 nostr 的消息 - V2EX Nostr 是否可行? - V2EX Nostr 这个 怎么架设有了解的吗? - V2EX 把玩 Damus(nostr)有感 - V2EX 去中心化社交协议: Nostr - V2EX
用自己的 Hexo 博客完成 nostr 的 NIP-05 认证 - V2EX
boris1993Jr · 2023-02-05 · via nostr

转自我的博客,原文链接:通过 Hexo 博客完成 NIP-05 验证


让 Hexo 在生成时包含.well-known目录

编辑config.yml,添加如下配置:

include:
  - ".well-known/**"

转换公钥格式

Damus 生成的npub开头的公钥不能直接用,要先转换成十六进制格式的公钥。可以用这个网站来转换。

npub开头的公钥粘贴进damus key一栏,hex key会自动计算出来,复制hex key的内容备用。

创建文件

source目录下新建一个名为.well-known的目录,然后在.well-known目录中创建nostr.json,填写如下信息:

{
    "names": {
        "你的用户名": "刚刚转换得到的 hex key"
    }
}

在本地运行hexo clean && hexo g,生成成功后检查public目录中是否存在.well-known/nostr.json文件,如存在则说明配置正确。

提交代码并部署成功后,即可在nostr客户端配置NIP-05认证,本文以Damus为例。

点击左上角头像,进入Profile,点击Edit,在NIP-05 VERIFICATION一栏中填写你的 username@你的博客网站,比如我填写的是[email protected],最后点击Save

如果一切正常的话,在你的 Profile 页面就能看到一个对勾图标,代表验证成功。