返回顶部
a

archon-keymasterArchon密钥管理

Core Archon DID toolkit - identity management, verifiable credentials, encrypted messaging (dmail), Nostr integration, file encryption/signing, aliasing, authorization (challenge/response), groups, and cryptographic polls. Use for creating/managing DIDs, issuing/accepting verifiable credentials, sending encrypted messages between DIDs, deriving Nostr keypairs, encrypting/signing files, managing DID aliases, challenge/response authorization, managing DID groups, or running cryptographically verif

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

archon-keymaster

Archon Keymaster - 核心DID工具包

Archon去中心化身份(DID)的核心工具包。管理身份生命周期、加密通信、密码学操作和授权。

相关技能:

  • - archon-vault — 保险库管理与加密分布式备份
  • archon-cashu — 支持DID锁定代币的Cashu电子现金

功能

  • - 身份管理 - 创建、管理多个DID,通过助记词恢复
  • 可验证凭证 - 创建模式、签发/接受/撤销凭证
  • 加密消息(Dmail) - DID之间发送/接收端到端加密消息
  • Nostr集成 - 从您的DID派生Nostr密钥对(相同的secp256k1密钥)
  • 文件加密 - 为特定DID加密文件
  • 数字签名 - 使用您的DID签名和验证文件
  • DID别名 - 为DID设置友好名称(联系人、模式、凭证)
  • 授权 - DID之间的挑战/响应验证
  • 群组 - 创建和管理DID群组,用于访问控制与多方操作
  • 投票 - 支持透明或秘密投票的加密投票
  • 资产 - 在注册表中存储和检索内容寻址资产

前提条件

  • - 已安装Node.js(用于npx @didcid/keymaster)
  • 环境文件:~/.archon.env,包含:
- ARCHONWALLETPATH - 钱包文件路径(必需) - ARCHON_PASSPHRASE - 钱包加密密码(必需) - ARCHONGATEKEEPERURL - 网关端点(可选,默认使用公共网关)
  • - 所有内容由create-id.sh自动创建

安全说明

本技能处理密码学身份操作:

  1. 1. 环境变量中的密码:ARCHON_PASSPHRASE存储在~/.archon.env中,用于非交互式脚本执行。该文件应设置为chmod 600。
  1. 2. 访问的敏感文件
- ~/.archon.wallet.json — 包含DID私钥的加密钱包 - ~/.archon.env — 钱包加密密码
  1. 3. 网络:数据在传输到Archon网关/超群网络前已加密。只有预期接收者才能解密。
  1. 4. 密钥恢复:您的12词助记词是主恢复密钥。请离线存储,切勿以数字形式保存。

快速开始

首次设置

bash
./scripts/identity/create-id.sh [钱包路径]

创建您的第一个DID,生成密码,保存到~/.archon.env。

  • - 默认钱包位置:~/.archon.wallet.json
  • 您可以指定自定义路径:./scripts/identity/create-id.sh ~/my-wallet.json
  • 请记下您的12词助记词 - 这是您的主恢复密钥。

加载环境

所有脚本都需要配置~/.archon.env。只需运行:

bash
source ~/.archon.env

环境文件设置了ARCHONWALLETPATH和ARCHON_PASSPHRASE。如果未设置这些变量,脚本将报错。

身份管理

创建额外身份

bash
./scripts/identity/create-additional-id.sh <名称>

创建假名身份或按角色分离的身份(所有身份共享相同的助记词)。

列出所有DID

bash
./scripts/identity/list-ids.sh

切换活动身份

bash
./scripts/identity/switch-id.sh <名称>

恢复

有关灾难恢复和保险库恢复操作,请参阅archon-backup技能。

可验证凭证模式

创建和管理可验证凭证的模式。

创建模式

bash
./scripts/schemas/create-schema.sh <模式文件.json>

从JSON文件创建凭证模式。

示例模式(proof-of-human.json):
json
{
$schema: http://json-schema.org/draft-07/schema#,
$credentialContext: [
https://www.w3.org/ns/credentials/v2,
https://archetech.com/schemas/credentials/agent/v1
],
$credentialType: [
VerifiableCredential,
AgentCredential,
ProofOfHumanCredential
],
name: proof-of-human,
description: 验证人类身份,
properties: {
credence: {
type: number,
minimum: 0,
maximum: 1,
description: 置信度(0-1),表示主体为人类的可信程度
}
},
required: [credence]
}

bash
./scripts/schemas/create-schema.sh proof-of-human.json

返回:did:cid:bagaaiera4yl4xi...

列出您的模式

bash
./scripts/schemas/list-schemas.sh

列出您拥有的所有模式。

获取模式

bash
./scripts/schemas/get-schema.sh <模式DID或别名>

通过DID或别名检索模式定义。

可验证凭证

签发、接受和管理可验证凭证。

签发凭证(3步流程)

1. 将凭证绑定到主体

bash
./scripts/credentials/bind-credential.sh <模式DID或别名> <主体DID或别名>

为主体创建绑定的凭证模板文件。

示例:
bash
./scripts/credentials/bind-credential.sh proof-of-human-schema alice

创建:bagaaierb...BOUND.json(主体DID不含did:cid:前缀)

2. 填写凭证数据

编辑.BOUND.json文件,填写credentialSubject数据:

json
{
credentialSubject: {
id: did:cid:bagaaierb...,
credence: 0.97
}
}

3. 签发凭证

bash
./scripts/credentials/issue-credential.sh <绑定文件.json>

签名并加密凭证。返回凭证DID。底层的@didcid/keymaster命令可能保存输出文件 - 请参阅Keymaster文档了解确切的文件输出行为。

示例:
bash
./scripts/credentials/issue-credential.sh bagaaierb...BOUND.json

返回凭证DID:did:cid:bagaaierc...

接受凭证

bash
./scripts/credentials/accept-credential.sh <凭证DID>

接受并保存签发给您的凭证。

示例:
bash
./scripts/credentials/accept-credential.sh did:cid:bagaaierc...

管理凭证

列出您的凭证

bash
./scripts/credentials/list-credentials.sh

列出您已接收的所有凭证。

列出已签发的凭证

bash
./scripts/credentials/list-issued.sh

列出您已签发给他人的所有凭证。

获取凭证

bash
./scripts/credentials/get-credential.sh <凭证DID或别名>

检索完整的凭证详情。

发布与撤销

发布凭证

bash
./scripts/credentials/publish-credential.sh <凭证DID>

将凭证添加到您的公共DID清单(使其对他人可见)。

撤销凭证

bash
./scripts/credentials/revoke-credential.sh <凭证DID>

撤销您签发的凭证(使其失效)。

完整示例:签发人类身份证明

bash

1. 创建模式


./scripts/schemas/create-schema.sh proof-of-human.json

返回:did:cid:bagaaiera4yl4xi...

2. 为方便添加别名

./scripts/aliases/add-alias.sh proof-of-human-schema did:cid:bagaaiera4yl4xi...

3. 将凭证绑定到Alice

./scripts/credentials/bind-credential.sh proof-of-human-schema alice

创建:bagaaierb...BOUND.json(Alice的DID不含前缀)

4. 编辑文件,设置credence:0.97

5. 签发凭证

./scripts/credentials/issue-credential.sh bagaaierb...BOUND.json

返回:did:cid:bagaaierc...

6. Alice接受它

./scripts/credentials/accept-credential.sh did:cid:bagaaierc...

7. Alice发布到她的清单

./scripts/credentials/publish-credential.sh did:cid:bagaaierc...

加密消息(Dmail)

DID之间的端到端加密消息,支持附件。

发送消息

bash
./scripts/messaging/send.sh <接收者DID或别名> <主题> <正文> [抄送DID...]

示例:
bash
./scripts/m

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 archon-keymaster-1776301723 技能

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

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

通过命令行安装

skillhub install archon-keymaster-1776301723

下载

⬇ 下载 archon-keymaster v0.1.4(免费)

文件大小: 57.85 KB | 发布时间: 2026-4-16 17:58

v0.1.4 最新 2026-4-16 17:58
- Added `ARCHON_GATEKEEPER_URL` as an optional environment variable in metadata requirements.
- Updated metadata to include `jq` and `openssl` as optional binaries.
- No functional changes to scripts; adjustments are metadata-only and documentation-related.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部