ERC-8004,正式名称为Trustless Agents(无需信任的代理),是一个最终确定的以太坊标准,旨在为在区块链上运行的自主AI代理建立一个基础的信任和发现层。该标准旨在创建一个通用框架,使代理能够以去中心化的方式相互识别、验证和协作,从而将以太坊定位为机器对机器经济的核心协调平台,以及一个全球市场,AI服务可以在没有守门人的情况下进行互操作。[8] [6] [9]
The development of ERC-8004 was motivated by the rapid growth of the artificial intelligence sector and the emergence of "agentic systems"—autonomous AI capable of independent decision-making and action. Proponents identified a "coordination problem" where numerous decentralized AI projects were creating proprietary communication and trust systems, hindering interoperability. The standard seeks to solve this by providing a shared, open protocol to counter the dominance of centralized AI ecosystems being developed by major technology corporations. [3]
ERC-8004 is designed to provide the on-chain primitives necessary for establishing trust between agents that have no prior relationship. It extends existing off-chain communication protocols by creating on-chain registries for identity, reputation, and validation. This framework is intended to enable a future where AI agents are the primary actors in a decentralized economy, capable of negotiating contracts, managing resources, and forming Decentralized Autonomous Organizations (DAOs). The concept positions Ethereum not just as a platform for running AI models, but as a neutral and immutable "trustware" layer where machines can anchor their identity, memory, and proof of actions. [8] [4]
The standard is intentionally minimalist and unopinionated, providing a foundational layer for visibility and data commitments while leaving more complex logic, such as specific reputation scoring algorithms or payment mechanisms, to be developed by the broader ecosystem. This modular approach is intended to foster innovation and allow for the creation of specialized services like auditor networks, agent marketplaces, and decentralized insurance pools built upon the common ERC-8004 framework. [3] [6]
ERC-8004 的概念于 2025 年春季出现,当时 MetaMask 的人工智能主管 Marco De Rossi 意识到需要一个通用标准来防止去中心化人工智能领域的碎片化。一个关键的催化剂是谷歌在 2025 年 6 月将其 Agent-to-Agent (A2A) 通信协议捐赠给 Linux 基金会。虽然 A2A 协议提供了一种代理交互的语言,但它缺乏在去中心化 Web3 环境中所需的发现和信任组件。 [3]
在此之后,De Rossi 开始与 以太坊基金会 的 Davide Crapis 和谷歌的 Jordan Ellis 合作起草一个标准,该标准将扩展 A2A 以用于无需信任的环境。EIP 的正式草案于 2025 年 8 月 13 日创建,并在第二天发布到 Ethereum Magicians 论坛上进行公开讨论。该提案于 2025 年 8 月 18 日左右在社交媒体上公开,并于 2025 年 8 月 21 日正式启动,受到了开发者社区的广泛关注。2025 年 10 月 9 日,该标准由 以太坊基金会 的 dAI 团队和 Consensys 正式发布。经过一段时间的同行评审和社区反馈后,该标准最终确定,并于 2026 年 1 月 27 日,官方 以太坊 X 账户宣布 ERC-8004 即将“上线主网”。 [6] [7] [8] [9]
ERC-8004 提出了一个模块化系统,该系统由三个轻量级的链上注册表组成,旨在作为每个链的单例部署在 Ethereum 或任何 Layer 2 网络上。它通过添加缺失的链上信任和发现层来扩展 Agent-to-Agent (A2A) 协议。 [6]
该标准架构旨在通过仅在链上保留必要的“信任框架”来提高 gas 效率。这包括代理身份以及指向声誉和验证数据的指针。更复杂和数据密集的信息,例如详细的反馈或验证报告,存储在链下的去中心化存储系统(如 IPFS)上,并通过不可变的链上哈希提供可验证的链接。这种设计允许智能合约与核心信任数据交互,而链下服务可以处理更详细的信息。 [4] [7]
该标准的基础是身份注册表,它建立在具有 URIStorage 扩展的 ERC-721 非同质化代币 (NFT) 标准之上。
namespace (EIP-155)、chainId、identityRegistry 合约地址和 agentId (ERC-721 tokenId) 组成的复合键唯一标识。tokenURI 必须指向包含代理元数据的标准化 JSON 文件。此文件充当代理的“护照”,并包含必需字段,例如其名称、描述和通信端点。支持的端点可以包括 A2A、ENS、去中心化标识符 (DID) 和钱包地址。
这些功能允许网络中的任何参与者以标准化方式发现代理并检索其功能。 [6]信誉注册表提供了一个标准化的接口,供客户端(包括人和机器)提交和查询关于代理性能的反馈,从而创建一个可验证的链上行为历史记录。
giveFeedback 函数,提交一个数值评分(0-100)、用于过滤的可选链上标签以及指向详细的链下反馈文件的 URI。getSummary 函数,该函数返回代理的总反馈计数和平均评分,其他合约可以使用这些信息进行自动决策。该标准的文档说明了如何使用通用值和标签字段来衡量各种特定指标:
tag1 | 衡量指标 | 示例 value / valueDecimals |
|---|---|---|
starred | 质量评级 (0-100) | 87 / 0 |
uptime | 端点正常运行时间 (%) | 9977 / 2 (表示 99.77%) |
tradingYield | 财务收益率 (%) | -32 / 1 (表示 -3.2%) |
revenues | 累计收入 (USD) | 560 / 0 (表示 $560) |
该系统旨在培育一个专业的信誉服务生态系统,该生态系统可以分析链上数据以提供更细致的信任评分。 [6]
验证注册表使代理能够从专门的验证器智能合约中获得对其工作的正式链上验证,这对于高风险应用程序至关重要。
validationRequest,指定一个验证器合约,并提供一个指向要验证的任务数据的URI。指定的验证器然后评估工作,并提交一个validationResponse,其中包含通过/失败分数(0-100)和一个指向审计报告的可选链接。ERC-8004由来自Web3和人工智能领域知名实体的跨组织团队编写。EIP上列出的官方作者是:
该提案还感谢了包括Consensys、Nethermind、TensorBlock、Olas、Eigen Labs等在内的广泛个人和组织的技术反馈和贡献,突出了其开发中的广泛合作。 [6] [7]
ERC-8004 的实施旨在实现各种应用,并促进去中心化 AI 的新生态系统。
ERC-8004旨在成为一个基础层,与Web3和AI生态系统中的其他标准和技术集成并互补。