SageDID

Demerzels-lab2026-10-27查看 673复制 1557

Sage DID(去中心化标识符)操作。列出DID、创建新DID、转移所有权、更新元数据、规范化。

Download (.md)

📘如何使用这个技能

  1. 1
    复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
  2. 2
    打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
  3. 3
    粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
  4. 4
    直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景

💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。

SKILL.md1851 chars
---
name: sage-did
description: Sage DID (Decentralized Identifier) operations. List DIDs, create new DIDs, transfer ownership, update metadata, normalize.
---

# Sage DIDs

DID (Decentralized Identifier) operations.

## Endpoints

### Query DIDs

| Endpoint | Payload | Description |
|----------|---------|-------------|
| `get_dids` | `{}` | List all DIDs |
| `get_minter_did_ids` | `{"offset": 0, "limit": 50}` | List minter DIDs |

### Create DID

```json
{
  "name": "My Identity",
  "fee": "100000000",
  "auto_submit": true
}
```

### Update DID

```json
{
  "did_id": "did:chia:1abc...",
  "name": "Updated Name",
  "visible": true
}
```

### Transfer DIDs

```json
{
  "did_ids": ["did:chia:1abc..."],
  "address": "xch1...",
  "fee": "100000000",
  "clawback": null,
  "auto_submit": true
}
```

### Normalize DIDs

Update DID records to latest on-chain state:

```json
{
  "did_ids": ["did:chia:1abc..."],
  "fee": "100000000",
  "auto_submit": true
}
```

## DID Record Structure

```json
{
  "did_id": "did:chia:1abc...",
  "launcher_id": "0x...",
  "name": "My Identity",
  "visible": true,
  "coin_id": "0x..."
}
```

## Examples

```bash
# List DIDs
sage_rpc get_dids '{}'

# Create DID
sage_rpc create_did '{
  "name": "Artist Profile",
  "fee": "100000000",
  "auto_submit": true
}'

# Transfer DID
sage_rpc transfer_dids '{
  "did_ids": ["did:chia:1abc..."],
  "address": "xch1newowner...",
  "fee": "100000000",
  "auto_submit": true
}'

# Update name
sage_rpc update_did '{
  "did_id": "did:chia:1abc...",
  "name": "New Profile Name",
  "visible": true
}'
```

## Use Cases

- **NFT Minting**: DIDs provide verifiable provenance for minted NFTs
- **Identity**: DIDs act as on-chain identities for profiles
- **Collections**: Link NFT collections to a minter DID
- **Authentication**: Sign messages with DID keys for verification
来源:skillsdirectory

评论0

登录后参与评论

还没有评论,来抢沙发吧