ERC-8004 Trustless Agents
2026-03-31
新闻来源:网淘吧
围观:15
电脑广告
手机广告
ERC-8004:免信任代理
为自主代理提供链上身份、声誉及验证。现已上线以太坊主网!
概述
ERC-8004 提供三个注册表:

- 身份注册表- 包含注册元数据的 ERC-721 代理身份
- 声誉注册表- 代理/客户端之间的签名反馈评分
- 验证注册表- 独立验证(零知识机器学习、可信执行环境、质押者)
快速参考
注册代理
./scripts/register.sh --uri "ipfs://..." --network mainnet
./scripts/register.sh --network sepolia # Testnet (no URI, set later)
查询代理
./scripts/query.sh total --network mainnet # Total registered
./scripts/query.sh agent 1 --network mainnet # Agent details
./scripts/query.sh reputation 1 # Reputation summary
更新代理
./scripts/set-uri.sh --agent-id 1 --uri "ipfs://newHash" --network mainnet
给予反馈
./scripts/feedback.sh --agent-id 1 --score 85 --tag1 "quality"
./scripts/feedback.sh --agent-id 1 --score 9977 --decimals 2 --tag1 "uptime"
网络
| 网络 | 状态 | 身份注册表 | 声誉注册表 |
|---|---|---|---|
| 主网 | 已上线 | 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432 | 0x8004BAa17C55a88189AE136b182e5fdA19dE9b63 |
| Sepolia | 已上线 | 0x8004A818BFB912233c491871b3d84c89A494BD9e | 0x8004B663056A597Dffe9eCcC1965A193B7388713 |
| Base | 即将推出 | 待定 | 待定 |
| Arbitrum | 即将推出 | 待定 | 待定 |
| Optimism | 即将推出 | 待定 | 待定 |
合约地址位于lib/contracts.json。
注册文件格式
{
"type": "https://eips.ethereum.org/EIPS/eip-8004#registration-v1",
"name": "your-agent-name",
"description": "Agent description...",
"image": "ipfs://...",
"services": [
{ "name": "A2A", "endpoint": "https://agent.example/.well-known/agent-card.json", "version": "0.3.0" },
{ "name": "MCP", "endpoint": "https://mcp.agent.eth/", "version": "2025-06-18" },
{ "name": "ENS", "endpoint": "yourname.eth" }
],
"registrations": [
{ "agentRegistry": "eip155:1:0x8004A169FB4a3325136EB29fA0ceB6D2e539a432", "agentId": "1" }
],
"supportedTrust": ["reputation", "crypto-economic", "tee-attestation"]
}
模板位于templates/registration.json。
声誉评分
声誉系统采用有符号定点数(数值+小数位数):
| 标签 | 含义 | 示例 | 数值 | 小数位数 |
|---|---|---|---|---|
| 星标 | 质量(0-100) | 87/100 | 87 | 0 |
| 运行时间 | 运行时间百分比 | 99.77% | 9977 | 2 |
| 交易收益率 | 收益率百分比 | -3.2% | -32 | 1 |
| 响应时间 | 延迟(毫秒) | 560毫秒 | 560 | 0 |
信任模型
ERC-8004支持三种可插拔的信任模型:
- 基于声誉的- 包含评分、标签和元数据的客户端反馈
- 加密经济学的- 具有经济激励的权益质押验证
- 加密验证的- TEE认证和zkML证明
依赖项
cast(Foundry) -curl -L https://foundry.paradigm.xyz | bashjq-brew install jq- 私钥位于
~/.clawdbot/wallets/.deployer_pk或PRIVATE_KEY环境变量中 - IPFS:设置
PINATA_JWT用于上传,或手动上传
资源
官方
- EIP-8004 规范- 完整规范
- 8004.org- 官方网站
- 参考实现- 合约源码
- Telegram 社区- 构建者聊天群
- 构建者计划- 加入生态系统
SDK 与工具
- ChaosChain SDK- JS/TS SDK
- erc-8004-js- 轻量级 JS 库
- erc-8004-py- Python 实现
- Vistara 示例- 包含 AI 智能体的完整演示
生态系统
- 太棒的ERC-8004- 精选资源列表
- A2A协议- 代理对代理协议ERC-8004扩展
- 以太坊魔法师讨论
创世月(2026年2月)
ERC-8004于2026年1月29日主网上线。二月是"创世月"——展示构建代理经济的团队。快来参与吧!
文章底部电脑广告
手机广告位-内容正文底部


微信扫一扫,打赏作者吧~