{"eip":8107,"title":"ENS Trust Registry for Agent Coordination","description":"Web of trust validation using ENS names for ERC-8001 multi-party coordination","authors":["Kwame Bryan (@KBryan)"],"status":"Review","type":"Standards Track","category":"ERC","created":"2025-12-16","requires":[137,165,712,1271,5267,8001],"discussionsTo":"https://ethereum-magicians.org/t/erc-ens-trust-registry-for-agent-coordination/27200","repo":"ERCs","label":"ERC-8107","officialUrl":"https://eips.ethereum.org/EIPS/eip-8107","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-8107.md","url":"https://eips.huatuo.xyz/eip-8107/","tldr":{"en":"A web-of-trust registry keyed by ENS names, where agents sign trust levels for each other and ERC-8001 coordinators admit a participant only if a valid trust path leads from their gatekeeper to that agent.","ja":"ENS 名をキーとするウェブ・オブ・トラスト型のレジストリ。エージェントが互いに信頼レベルを署名し、ERC-8001 のコーディネーターは、ゲートキーパーからそのエージェントへ有効な信頼パスがつながっている場合にのみ参加者を受け入れる。","ko":"ENS 이름을 키로 하는 신뢰망(web of trust) 레지스트리. 에이전트가 서로에게 신뢰 수준을 서명하고, ERC-8001 코디네이터는 게이트키퍼에서 해당 에이전트로 이어지는 유효한 신뢰 경로가 있을 때만 참가자를 받아들인다.","zh":"一个以 ENS 名称为键的信任网络（web of trust）注册表：智能体相互签署信任等级，ERC-8001 协调者只有在存在一条从其守门人通往该智能体的有效信任路径时，才接纳某个参与者。"},"tags":["ai-agents","ens","trust","reputation","coordination"],"explainers":{"en":{"lang":"en","tldr":"A web-of-trust registry keyed by ENS names, where agents sign trust levels for each other and ERC-8001 coordinators admit a participant only if a valid trust path leads from their gatekeeper to that agent.","tags":["ai-agents","ens","trust","reputation","coordination"],"related":[8001,137,712,1271,8004],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-8107/","markdown":"## What problem does it solve?\n\n[ERC-8001](/eip-8001/) gives agents a minimal way to coordinate multi-party actions, but explicitly leaves reputation and trust to add-on modules. Before inviting an agent into a coordination, you want to know: should I include it, can I rely on the agents who vouch for it, and how do I update that as things go well or badly?\n\nERC-8107 is that trust module. It borrows the OpenPGP web-of-trust model (trust levels and certification paths, per RFC 9580) and uses [ENS](/eip-137/) names as identities, so trust survives key rotation and is attached to human-readable names like `alice.agents.eth`.\n\n## How it works\n\n**Trust levels.** Each edge `trustor → trustee` in a given scope has a level: `Unknown` (default), `None` (endorsement withdrawn), `Marginal` or `Full`. Levels `Marginal`/`Full` are set only by an [EIP-712](/eip-712/) signed `TrustAttestation` from the trustor name's controller (with [ERC-1271](/eip-1271/) support for contract wallets), carrying a scope, optional expiry and a per-trustor nonce. `revokeTrust` sets `None`.\n\n**Denial.** Separately from levels, a name controller can *deny* another name. Denial means \"I will not rely on this agent even if others vouch for it\", and only the controller can set or clear it.\n\n**Path verification.** Searching the graph happens off-chain; the contract only checks a supplied path `[validator, …, target]` with `verifyPath`. A path is valid only if:\n\n- it has distinct nodes and at most `maxPathLength` edges (1–10, default 5);\n- every edge meets `minEdgeTrust`, is not expired (if `enforceExpiry`) and is not denied;\n- the validator has not denied any later node on the path;\n- it passes through at least one of `requiredAnchors`, if any are set.\n\nUnlike OpenPGP, there is no accumulation of several marginal signatures: one path, every edge checked.\n\n**Identity gates.** An ERC-8001 coordinator registers a gate per coordination type with a gatekeeper name and validation parameters. `validateParticipantWithPath` / `validateParticipantAddress` then check that the path starts at the gatekeeper and ends at the participant. An unconfigured gate reverts rather than letting everyone in.\n\n## Sample code\n\nSigning an attestation and checking a path (ethers v6):\n\n```ts\nimport { Contract, namehash, ZeroHash } from \"ethers\";\n\nconst domain = { name: \"TrustRegistry\", version: \"1\", chainId, verifyingContract: REGISTRY };\nconst types = {\n  TrustAttestation: [\n    { name: \"trustorNode\", type: \"bytes32\" },\n    { name: \"trusteeNode\", type: \"bytes32\" },\n    { name: \"level\", type: \"uint8\" },\n    { name: \"scope\", type: \"bytes32\" },\n    { name: \"expiry\", type: \"uint64\" },\n    { name: \"nonce\", type: \"uint64\" },\n  ],\n};\n\nconst registry = new Contract(REGISTRY, abi, signer); // abi: ITrustRegistry\nconst att = {\n  trustorNode: namehash(\"alice.agents.eth\"),\n  trusteeNode: namehash(\"bob.agents.eth\"),\n  level: 3,                       // TrustLevel.Full\n  scope: ZeroHash,                // universal\n  expiry: BigInt(Math.floor(Date.now() / 1000) + 30 * 86400),\n  nonce: (await registry.getNonce(namehash(\"alice.agents.eth\"))) + 1n,\n};\nconst sig = await aliceController.signTypedData(domain, types, att);\nawait registry.setTrust(att, sig);\n\nconst ok = await registry.verifyPath(\n  { nodes: [namehash(\"alice.agents.eth\"), namehash(\"bob.agents.eth\"), namehash(\"carol.agents.eth\")] },\n  { maxPathLength: 3, minEdgeTrust: 2, scope: ZeroHash, enforceExpiry: true, requiredAnchors: [] },\n);\n```\n\n## Things to know\n\n- Status is **Review**.\n- Trust follows the ENS name: if a name is transferred, the new owner inherits trust placed in it and control over trust it grants. Short expiries limit that exposure.\n- Sybil resistance is not built in. Anyone can create many names that vouch for each other; use required anchors, short paths, `Full` trust for high-value gates, and off-chain monitoring.\n- On-chain validation needs an on-chain ENS resolver; CCIP-Read is client-side only.\n- The spec also covers NameWrapper handling and migration to ENSv2 in detail; check it before deploying on a specific network.\n"},"ja":{"lang":"ja","tldr":"ENS 名をキーとするウェブ・オブ・トラスト型のレジストリ。エージェントが互いに信頼レベルを署名し、ERC-8001 のコーディネーターは、ゲートキーパーからそのエージェントへ有効な信頼パスがつながっている場合にのみ参加者を受け入れる。","tags":["ai-agents","ens","trust","reputation","coordination"],"related":[8001,137,712,1271,8004],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-8107/","markdown":"## 何を解決するのか\n\n[ERC-8001](/eip-8001/) は、エージェントが複数当事者の行動を調整するための最小限の方法を提供しますが、レピュテーションと信頼は、追加モジュールに委ねると明示しています。エージェントを調整に招く前に、知りたいことがあります。そのエージェントを含めるべきか、その保証人となっているエージェントを信頼してよいか、物事がうまくいったりいかなかったりしたときにそれをどう更新するか、です。\n\nERC-8107 は、その信頼モジュールです。OpenPGP のウェブ・オブ・トラストのモデル（RFC 9580 に基づく信頼レベルと認証パス）を借用し、[ENS](/eip-137/) 名をアイデンティティとして使います。そのため、鍵をローテーションしても信頼は維持され、`alice.agents.eth` のような人間が読める名前に紐づきます。\n\n## 仕組み\n\n**信頼レベル。** 特定のスコープにおける各エッジ `trustor → trustee` には、`Unknown`（デフォルト）、`None`（推薦の撤回）、`Marginal`、`Full` のいずれかのレベルがあります。`Marginal`/`Full` は、信頼する側の名前のコントローラーによる [EIP-712](/eip-712/) 署名付きの `TrustAttestation` でのみ設定できます（コントラクトウォレット向けに [ERC-1271](/eip-1271/) をサポート）。これにはスコープ、任意の有効期限、信頼する側ごとの nonce が含まれます。`revokeTrust` は `None` を設定します。\n\n**拒否（Denial）。** レベルとは別に、名前のコントローラーは別の名前を*拒否*できます。拒否は「他の誰が保証しても、このエージェントには頼らない」という意味で、設定や解除ができるのはコントローラーだけです。\n\n**パスの検証。** グラフの探索はオフチェーンで行われ、コントラクトは `verifyPath` で、与えられたパス `[validator, …, target]` だけをチェックします。パスが有効なのは、次の条件をすべて満たす場合に限られます。\n\n- ノードが重複せず、エッジが最大 `maxPathLength` 本（1〜10、デフォルト 5）以下であること。\n- すべてのエッジが `minEdgeTrust` を満たし、（`enforceExpiry` の場合）期限切れでなく、拒否されていないこと。\n- バリデーターが、パス上の後続のどのノードも拒否していないこと。\n- `requiredAnchors` が設定されている場合、そのうち少なくとも 1 つを通過すること。\n\nOpenPGP と違い、複数の Marginal 署名の累積はありません。パスは 1 本で、すべてのエッジがチェックされます。\n\n**アイデンティティゲート。** ERC-8001 のコーディネーターは、調整タイプごとに、ゲートキーパー名と検証パラメーターを持つゲートを登録します。`validateParticipantWithPath` / `validateParticipantAddress` は、パスがゲートキーパーから始まり参加者で終わることを確認します。設定されていないゲートは、全員を通すのではなくリバートします。\n\n## サンプルコード\n\nアテステーションに署名し、パスを確認する（ethers v6）:\n\n```ts\nimport { Contract, namehash, ZeroHash } from \"ethers\";\n\nconst domain = { name: \"TrustRegistry\", version: \"1\", chainId, verifyingContract: REGISTRY };\nconst types = {\n  TrustAttestation: [\n    { name: \"trustorNode\", type: \"bytes32\" },\n    { name: \"trusteeNode\", type: \"bytes32\" },\n    { name: \"level\", type: \"uint8\" },\n    { name: \"scope\", type: \"bytes32\" },\n    { name: \"expiry\", type: \"uint64\" },\n    { name: \"nonce\", type: \"uint64\" },\n  ],\n};\n\nconst registry = new Contract(REGISTRY, abi, signer); // abi: ITrustRegistry\nconst att = {\n  trustorNode: namehash(\"alice.agents.eth\"),\n  trusteeNode: namehash(\"bob.agents.eth\"),\n  level: 3,                       // TrustLevel.Full\n  scope: ZeroHash,                // universal\n  expiry: BigInt(Math.floor(Date.now() / 1000) + 30 * 86400),\n  nonce: (await registry.getNonce(namehash(\"alice.agents.eth\"))) + 1n,\n};\nconst sig = await aliceController.signTypedData(domain, types, att);\nawait registry.setTrust(att, sig);\n\nconst ok = await registry.verifyPath(\n  { nodes: [namehash(\"alice.agents.eth\"), namehash(\"bob.agents.eth\"), namehash(\"carol.agents.eth\")] },\n  { maxPathLength: 3, minEdgeTrust: 2, scope: ZeroHash, enforceExpiry: true, requiredAnchors: [] },\n);\n```\n\n## 知っておくべきこと\n\n- ステータスは **Review** です。\n- 信頼は ENS 名に従います。名前が移転されると、新しいオーナーは、その名前に寄せられた信頼と、その名前が与える信頼のコントロールを引き継ぎます。有効期限を短くすれば、このリスクを抑えられます。\n- シビル耐性は組み込まれていません。誰でも、互いを保証し合う多数の名前を作れます。必須アンカー、短いパス、価値の高いゲートでの `Full` 信頼、オフチェーンの監視を活用してください。\n- オンチェーンでの検証には、オンチェーンの ENS リゾルバーが必要です。CCIP-Read はクライアント側のみです。\n- 仕様は、NameWrapper の扱いと ENSv2 への移行についても詳しく扱っています。特定のネットワークにデプロイする前に確認してください。\n"},"ko":{"lang":"ko","tldr":"ENS 이름을 키로 하는 신뢰망(web of trust) 레지스트리. 에이전트가 서로에게 신뢰 수준을 서명하고, ERC-8001 코디네이터는 게이트키퍼에서 해당 에이전트로 이어지는 유효한 신뢰 경로가 있을 때만 참가자를 받아들인다.","tags":["ai-agents","ens","trust","reputation","coordination"],"related":[8001,137,712,1271,8004],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-8107/","markdown":"## 어떤 문제를 해결하나요?\n\n[ERC-8001](/eip-8001/)은 에이전트가 다자간 행동을 조율하는 최소한의 방법을 제공하지만, 평판과 신뢰는 추가 모듈에 맡긴다고 명시합니다. 에이전트를 조율에 초대하기 전에 알고 싶은 것이 있습니다. 이 에이전트를 포함해야 하는가, 그 에이전트를 보증하는 에이전트들을 믿어도 되는가, 일이 잘 풀리거나 잘못될 때 이를 어떻게 갱신하는가입니다.\n\nERC-8107이 바로 그 신뢰 모듈입니다. OpenPGP의 신뢰망 모델(RFC 9580에 따른 신뢰 수준과 인증 경로)을 차용하고 [ENS](/eip-137/) 이름을 신원으로 사용하므로, 키를 교체해도 신뢰가 유지되며 `alice.agents.eth`처럼 사람이 읽을 수 있는 이름에 신뢰가 붙습니다.\n\n## 어떻게 동작하나요?\n\n**신뢰 수준.** 주어진 스코프에서 각 엣지 `trustor → trustee`에는 `Unknown`(기본값), `None`(보증 철회), `Marginal`, `Full` 중 하나의 수준이 있습니다. `Marginal`/`Full`은 신뢰하는 쪽 이름의 컨트롤러가 서명한 [EIP-712](/eip-712/) `TrustAttestation`으로만 설정할 수 있으며(컨트랙트 지갑을 위해 [ERC-1271](/eip-1271/) 지원), 여기에는 스코프, 선택적 만료 시간, 신뢰하는 쪽별 nonce가 담깁니다. `revokeTrust`는 `None`으로 설정합니다.\n\n**거부(Denial).** 수준과는 별개로, 이름 컨트롤러는 다른 이름을 *거부*할 수 있습니다. 거부는 \"다른 이들이 보증하더라도 이 에이전트에 의존하지 않겠다\"는 뜻이며, 설정하거나 해제할 수 있는 것은 컨트롤러뿐입니다.\n\n**경로 검증.** 그래프 탐색은 오프체인에서 이루어지고, 컨트랙트는 `verifyPath`로 제공된 경로 `[validator, …, target]`만 확인합니다. 경로는 다음 조건을 모두 만족할 때만 유효합니다.\n\n- 노드가 서로 다르고 엣지가 최대 `maxPathLength`개(1~10, 기본값 5) 이하일 것.\n- 모든 엣지가 `minEdgeTrust`를 충족하고, (`enforceExpiry`인 경우) 만료되지 않았으며, 거부되지 않았을 것.\n- 검증자가 경로상의 이후 어떤 노드도 거부하지 않았을 것.\n- `requiredAnchors`가 설정되어 있다면 그중 적어도 하나를 지날 것.\n\nOpenPGP와 달리 여러 Marginal 서명을 누적하지 않습니다. 경로는 하나이며 모든 엣지를 확인합니다.\n\n**신원 게이트.** ERC-8001 코디네이터는 조율 유형별로 게이트키퍼 이름과 검증 매개변수가 있는 게이트를 등록합니다. 이후 `validateParticipantWithPath` / `validateParticipantAddress`가 경로가 게이트키퍼에서 시작해 참가자에서 끝나는지 확인합니다. 설정되지 않은 게이트는 모두를 통과시키는 대신 리버트됩니다.\n\n## 샘플 코드\n\n증명(attestation)에 서명하고 경로 확인하기(ethers v6):\n\n```ts\nimport { Contract, namehash, ZeroHash } from \"ethers\";\n\nconst domain = { name: \"TrustRegistry\", version: \"1\", chainId, verifyingContract: REGISTRY };\nconst types = {\n  TrustAttestation: [\n    { name: \"trustorNode\", type: \"bytes32\" },\n    { name: \"trusteeNode\", type: \"bytes32\" },\n    { name: \"level\", type: \"uint8\" },\n    { name: \"scope\", type: \"bytes32\" },\n    { name: \"expiry\", type: \"uint64\" },\n    { name: \"nonce\", type: \"uint64\" },\n  ],\n};\n\nconst registry = new Contract(REGISTRY, abi, signer); // abi: ITrustRegistry\nconst att = {\n  trustorNode: namehash(\"alice.agents.eth\"),\n  trusteeNode: namehash(\"bob.agents.eth\"),\n  level: 3,                       // TrustLevel.Full\n  scope: ZeroHash,                // universal\n  expiry: BigInt(Math.floor(Date.now() / 1000) + 30 * 86400),\n  nonce: (await registry.getNonce(namehash(\"alice.agents.eth\"))) + 1n,\n};\nconst sig = await aliceController.signTypedData(domain, types, att);\nawait registry.setTrust(att, sig);\n\nconst ok = await registry.verifyPath(\n  { nodes: [namehash(\"alice.agents.eth\"), namehash(\"bob.agents.eth\"), namehash(\"carol.agents.eth\")] },\n  { maxPathLength: 3, minEdgeTrust: 2, scope: ZeroHash, enforceExpiry: true, requiredAnchors: [] },\n);\n```\n\n## 알아둘 점\n\n- 상태는 **Review**입니다.\n- 신뢰는 ENS 이름을 따라갑니다. 이름이 이전되면 새 소유자는 그 이름에 부여된 신뢰와, 그 이름이 부여하는 신뢰에 대한 통제권을 물려받습니다. 만료 시간을 짧게 하면 이런 노출을 줄일 수 있습니다.\n- 시빌 저항성은 내장되어 있지 않습니다. 누구나 서로를 보증하는 이름을 여러 개 만들 수 있으므로, 필수 앵커, 짧은 경로, 가치가 높은 게이트에는 `Full` 신뢰, 오프체인 모니터링을 활용하세요.\n- 온체인 검증에는 온체인 ENS 리졸버가 필요합니다. CCIP-Read는 클라이언트 측에서만 가능합니다.\n- 명세는 NameWrapper 처리와 ENSv2로의 이전도 자세히 다룹니다. 특정 네트워크에 배포하기 전에 확인하세요.\n"},"zh":{"lang":"zh","tldr":"一个以 ENS 名称为键的信任网络（web of trust）注册表：智能体相互签署信任等级，ERC-8001 协调者只有在存在一条从其守门人通往该智能体的有效信任路径时，才接纳某个参与者。","tags":["ai-agents","ens","trust","reputation","coordination"],"related":[8001,137,712,1271,8004],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-8107/","markdown":"## 它解决什么问题？\n\n[ERC-8001](/eip-8001/) 为智能体协调多方行动提供了最小化的方式，但明确把声誉和信任留给附加模块。在邀请某个智能体加入协调之前，你想知道：我应该纳入它吗？我能信赖为它担保的那些智能体吗？当事情进展顺利或糟糕时，我该如何更新这一判断？\n\nERC-8107 就是这个信任模块。它借用 OpenPGP 的信任网络模型（信任等级和认证路径，依据 RFC 9580），并以 [ENS](/eip-137/) 名称作为身份，因此信任在密钥轮换后依然有效，并附着在 `alice.agents.eth` 这样易读的名称上。\n\n## 它如何运作\n\n**信任等级。** 在给定范围（scope）内，每条边 `trustor → trustee` 都有一个等级：`Unknown`（默认）、`None`（撤回背书）、`Marginal` 或 `Full`。`Marginal`/`Full` 只能通过信任方名称的控制者签署的 [EIP-712](/eip-712/) `TrustAttestation` 来设置（并为合约钱包支持 [ERC-1271](/eip-1271/)），其中包含范围、可选的过期时间以及每个信任方各自的 nonce。`revokeTrust` 会设为 `None`。\n\n**拒绝（Denial）。** 与等级相互独立，名称控制者可以*拒绝*另一个名称。拒绝意味着\"即使别人为这个智能体担保，我也不会依赖它\"，并且只有控制者本人才能设置或清除。\n\n**路径验证。** 图的搜索在链下进行；合约只用 `verifyPath` 检查所提供的路径 `[validator, …, target]`。只有同时满足以下条件，路径才有效：\n\n- 节点互不相同，且边数不超过 `maxPathLength`（1–10，默认 5）；\n- 每条边都满足 `minEdgeTrust`，未过期（若启用 `enforceExpiry`），且未被拒绝；\n- 验证者没有拒绝路径上之后的任何节点；\n- 如果设置了 `requiredAnchors`，则至少经过其中一个。\n\n与 OpenPGP 不同，这里不会累积多个 Marginal 签名：一条路径，检查每一条边。\n\n**身份门（Identity gates）。** ERC-8001 协调者为每种协调类型注册一个门，包含守门人名称和验证参数。`validateParticipantWithPath` / `validateParticipantAddress` 随后检查路径是否从守门人开始、到参与者结束。未配置的门会回滚，而不是放所有人通过。\n\n## 示例代码\n\n签署证明并检查路径（ethers v6）：\n\n```ts\nimport { Contract, namehash, ZeroHash } from \"ethers\";\n\nconst domain = { name: \"TrustRegistry\", version: \"1\", chainId, verifyingContract: REGISTRY };\nconst types = {\n  TrustAttestation: [\n    { name: \"trustorNode\", type: \"bytes32\" },\n    { name: \"trusteeNode\", type: \"bytes32\" },\n    { name: \"level\", type: \"uint8\" },\n    { name: \"scope\", type: \"bytes32\" },\n    { name: \"expiry\", type: \"uint64\" },\n    { name: \"nonce\", type: \"uint64\" },\n  ],\n};\n\nconst registry = new Contract(REGISTRY, abi, signer); // abi: ITrustRegistry\nconst att = {\n  trustorNode: namehash(\"alice.agents.eth\"),\n  trusteeNode: namehash(\"bob.agents.eth\"),\n  level: 3,                       // TrustLevel.Full\n  scope: ZeroHash,                // universal\n  expiry: BigInt(Math.floor(Date.now() / 1000) + 30 * 86400),\n  nonce: (await registry.getNonce(namehash(\"alice.agents.eth\"))) + 1n,\n};\nconst sig = await aliceController.signTypedData(domain, types, att);\nawait registry.setTrust(att, sig);\n\nconst ok = await registry.verifyPath(\n  { nodes: [namehash(\"alice.agents.eth\"), namehash(\"bob.agents.eth\"), namehash(\"carol.agents.eth\")] },\n  { maxPathLength: 3, minEdgeTrust: 2, scope: ZeroHash, enforceExpiry: true, requiredAnchors: [] },\n);\n```\n\n## 需要注意\n\n- 状态为 **Review**。\n- 信任跟随 ENS 名称：如果名称被转让，新所有者会继承该名称所获得的信任，以及对其授予的信任的控制权。较短的过期时间可以限制这种风险敞口。\n- 未内置抗女巫攻击能力。任何人都可以创建许多相互担保的名称；请使用必需锚点、较短的路径、对高价值门使用 `Full` 信任，并进行链下监控。\n- 链上验证需要链上的 ENS 解析器；CCIP-Read 仅限客户端。\n- 规范还详细涵盖了 NameWrapper 的处理以及向 ENSv2 的迁移；在特定网络上部署之前请先查阅。\n"}}}
