返回顶部
a

archon-nostrArchon-Nostr身份派生

Derive Nostr identity (npub/nsec) from Archon DID. Use when unifying DID and Nostr identities so both use the same secp256k1 key. Requires existing Archon wallet with ARCHON_PASSPHRASE set.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
1,650
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

archon-nostr

Archon Nostr 身份

从你的 Archon DID 的 secp256k1 验证密钥派生出 Nostr 密钥对。同一密钥,两种协议。

前置条件

  • - 已创建 DID 的 Archon 钱包
  • 已设置 ARCHON_PASSPHRASE 环境变量
  • nak 命令行工具:curl -sSL https://raw.githubusercontent.com/fiatjaf/nak/master/install.sh | sh

派生密钥

运行派生脚本:

bash
./scripts/derive-nostr.sh

这将输出从 m/44/0/0/0/0 派生出的 nsec、npub 和十六进制公钥。

保存密钥

bash
mkdir -p ~/.clawstr

保存上面输出的 nsec


echo nsec1... > ~/.clawstr/secret.key
chmod 600 ~/.clawstr/secret.key

更新 DID 文档

添加 Nostr 身份以实现可发现性:

bash
npx @didcid/keymaster set-property YourIdName nostr \
{npub:npub1...,pubkey:}

创建 Nostr 资料

bash
echo {
kind: 0,
content: {\name\:\YourName\,\about\:\Your bio. DID: did:cid:...\}
} | nak event --sec $(cat ~/.clawstr/secret.key) \
wss://relay.ditto.pub wss://relay.primal.net wss://relay.damus.io wss://nos.lol

验证统一性

DID 的 JWK x 坐标(base64url 编码)解码后与你的 Nostr 公钥十六进制值相同:

bash
npx @didcid/keymaster resolve-id | jq -r .didDocument.verificationMethod[0].publicKeyJwk.x

解码 base64url → 十六进制应与你的公钥匹配

工作原理

Archon 使用 m/44/0/0/0/0(比特币 BIP44 路径)生成 DID 密钥。Nostr 使用原始 secp256k1。相同的曲线,相同的密钥——只是编码方式不同。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 archon-nostr-1776368912 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 archon-nostr-1776368912 技能

通过命令行安装

skillhub install archon-nostr-1776368912

下载

⬇ 下载 archon-nostr v0.1.0(免费)

文件大小: 2.44 KB | 发布时间: 2026-4-17 14:30

v0.1.0 最新 2026-4-17 14:30
archon-nostr 0.1.0 – Initial release

- Derive a Nostr keypair (npub/nsec) directly from your Archon DID secp256k1 key, unifying Nostr and Archon identities.
- Requires an existing Archon wallet and `ARCHON_PASSPHRASE`.
- Provides scripts and instructions for key derivation, key storage, updating DID documents, and creating a Nostr profile.
- Ensures your Archon DID verification key and Nostr pubkey are cryptographically identical (just different formats).

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部