闲社服务运行正常AI智能体自动化平台
a

Archon-Nostr身份派生

技能标识:archon-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
检测标记
后台标记通过
免费
免费获取
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).
返回顶部