---
eip: 8107
label: ERC-8107
title: ENS Trust Registry for Agent Coordination
status: Review
type: Standards Track
category: ERC
created: 2025-12-16
requires: 137, 165, 712, 1271, 5267, 8001
official: https://eips.ethereum.org/EIPS/eip-8107
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-8107.md
canonical: https://eips.huatuo.xyz/eip-8107/
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]
---

# ERC-8107: ENS Trust Registry for Agent Coordination

> Web of trust validation using ENS names for ERC-8001 multi-party coordination

**TL;DR:** 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.

## What problem does it solve?

[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?

ERC-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`.

## How it works

**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`.

**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.

**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:

- it has distinct nodes and at most `maxPathLength` edges (1–10, default 5);
- every edge meets `minEdgeTrust`, is not expired (if `enforceExpiry`) and is not denied;
- the validator has not denied any later node on the path;
- it passes through at least one of `requiredAnchors`, if any are set.

Unlike OpenPGP, there is no accumulation of several marginal signatures: one path, every edge checked.

**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.

## Sample code

Signing an attestation and checking a path (ethers v6):

```ts
import { Contract, namehash, ZeroHash } from "ethers";

const domain = { name: "TrustRegistry", version: "1", chainId, verifyingContract: REGISTRY };
const types = {
  TrustAttestation: [
    { name: "trustorNode", type: "bytes32" },
    { name: "trusteeNode", type: "bytes32" },
    { name: "level", type: "uint8" },
    { name: "scope", type: "bytes32" },
    { name: "expiry", type: "uint64" },
    { name: "nonce", type: "uint64" },
  ],
};

const registry = new Contract(REGISTRY, abi, signer); // abi: ITrustRegistry
const att = {
  trustorNode: namehash("alice.agents.eth"),
  trusteeNode: namehash("bob.agents.eth"),
  level: 3,                       // TrustLevel.Full
  scope: ZeroHash,                // universal
  expiry: BigInt(Math.floor(Date.now() / 1000) + 30 * 86400),
  nonce: (await registry.getNonce(namehash("alice.agents.eth"))) + 1n,
};
const sig = await aliceController.signTypedData(domain, types, att);
await registry.setTrust(att, sig);

const ok = await registry.verifyPath(
  { nodes: [namehash("alice.agents.eth"), namehash("bob.agents.eth"), namehash("carol.agents.eth")] },
  { maxPathLength: 3, minEdgeTrust: 2, scope: ZeroHash, enforceExpiry: true, requiredAnchors: [] },
);
```

## Things to know

- Status is **Review**.
- 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.
- 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.
- On-chain validation needs an on-chain ENS resolver; CCIP-Read is client-side only.
- The spec also covers NameWrapper handling and migration to ENSv2 in detail; check it before deploying on a specific network.


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-8107
