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.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install archon-nostr或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install archon-nostr⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/archon-nostr/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: archon-nostr description: 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. ---
Derive your Nostr keypair from your Archon DID's secp256k1 verification key. Same key, two protocols.
ARCHON_PASSPHRASE environment variable setnak CLI: curl -sSL https://raw.githubusercontent.com/fiatjaf/nak/master/install.sh | shRun the derivation script:
./scripts/derive-nostr.sh
This outputs your nsec, npub, and hex pubkey derived from m/44'/0'/0'/0/0.
mkdir -p ~/.clawstr
# Save the nsec output from above
echo "nsec1..." > ~/.clawstr/secret.key
chmod 600 ~/.clawstr/secret.key
Add Nostr identity for discoverability:
npx @didcid/keymaster set-property YourIdName nostr \
'{"npub":"npub1...","pubkey":"<hex-pubkey>"}'
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
The DID's JWK x coordinate (base64url) decodes to the same hex as your Nostr pubkey:
npx @didcid/keymaster resolve-id | jq -r '.didDocument.verificationMethod[0].publicKeyJwk.x'
# Decode base64url → hex should match your pubkey
Archon uses m/44'/0'/0'/0/0 (Bitcoin BIP44 path) for DID keys. Nostr uses raw secp256k1. Same curve, same key — just different encodings.
安装 Archon Nostr 后,可以对 AI 说这些话来触发它
Help me get started with Archon Nostr
Explains what Archon Nostr does, walks through the setup, and runs a quick demo based on your current project
Use Archon Nostr to derive Nostr identity (npub/nsec) from Archon DID
Invokes Archon Nostr with the right parameters and returns the result directly in the conversation
What can I do with Archon Nostr in my finance & investment workflow?
Lists the top use cases for Archon Nostr, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/archon-nostr/ 目录(个人级,所有项目可用),或 .claude/skills/archon-nostr/(项目级)。重启 AI 客户端后,用 /archon-nostr 主动调用,或让 AI 根据上下文自动发现并使用。
Archon Nostr 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
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.
Archon Nostr 属于「Finance & Investment」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my finance & investment tasks using Archon Nostr
Identifies repetitive steps in your workflow and sets up Archon Nostr to handle them automatically