---
eip: 8176
label: ERC-8176
title: Descriptor Attestations for ERC-7730
status: Draft
type: Standards Track
category: ERC
created: 2026-02-26
requires: 712, 1271, 7730
official: https://eips.ethereum.org/EIPS/eip-8176
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-8176.md
canonical: https://eips.huatuo.xyz/eip-8176/
lang: en
tldr: Lets trusted reviewers sign Ethereum Attestation Service attestations over the hash of an ERC-7730 clear-signing descriptor, so wallets can detect forged or tampered descriptors before showing them to users.
tags: [clear-signing, wallets, attestations, eas, security]
---

# ERC-8176: Descriptor Attestations for ERC-7730

> Ethereum Attestation Service (EAS) schema and verification rules for attesting to ERC-7730 clear signing descriptors

**TL;DR:** Lets trusted reviewers sign Ethereum Attestation Service attestations over the hash of an ERC-7730 clear-signing descriptor, so wallets can detect forged or tampered descriptors before showing them to users.

## What problem does it solve?

[ERC-7730](/eip-7730/) descriptors are JSON files that tell a wallet how to show a contract call in human terms ("Swap 100 USDC for at least 0.03 ETH") instead of raw calldata. That makes them a target: a poisoned registry entry, a man-in-the-middle, or a compromised CDN could serve a descriptor that hides or mislabels important fields, and the user would sign believing the wrong thing.

ERC-7730 checks that a descriptor targets the right contract and chain, but not that anyone trusted actually reviewed it. Git commit signatures don't help once the file is served on its own. ERC-8176 adds portable, signed "I reviewed exactly this content" claims.

## How it works

**Hash the descriptor.** Resolve all `includes` recursively, serialize the result with JCS (RFC 8785, canonical JSON), then take Keccak-256 (Ethereum's variant, not NIST SHA3-256). That 32-byte value is the `descriptorHash`. Any change to the file or to an included file changes the hash.

**Attest with EAS.** The attestation uses one canonical Ethereum Attestation Service schema on mainnet, `bytes32 descriptorHash`, with no resolver (anyone can attest) and revocation enabled. The spec fixes the schema UID and the EAS contract address. An attestation can be:

- **onchain** – stored in the EAS contract via `attest()`, or
- **offchain** – an [EIP-712](/eip-712/)-signed JSON blob shipped next to the descriptor.

Contract attesters (multisigs, DAOs) are supported through [ERC-1271](/eip-1271/).

**Verify.** A wallet checks that the schema UID matches, recomputes the descriptor hash and compares it, rejects expired attestations, recovers the attester (ECDSA or ERC-1271 at the current block), checks revocation directly against the EAS contract, and finally checks that the attester is on *its own* trusted list. Multiple attesters may cover the same descriptor; each is verified independently, and the wallet decides how many it needs.

Revocation is always an onchain call to EAS, even for offchain attestations (`revokeOffchain(uid)`).

## Sample code

Computing the descriptor hash in TypeScript (ethers v6 plus a JCS library such as `canonicalize`), assuming `includes` have already been merged:

```ts
import canonicalize from "canonicalize";
import { keccak256, toUtf8Bytes } from "ethers";

function descriptorHash(resolvedDescriptor: object): string {
  const canonical = canonicalize(resolvedDescriptor)!; // RFC 8785 JSON
  return keccak256(toUtf8Bytes(canonical));            // 0x-prefixed, 32 bytes
}
```

The EIP-712 type signed for an offchain attestation (`version` must be `2`, `data` is `abi.encode(descriptorHash)`):

```
Attest(uint16 version,bytes32 schema,address recipient,uint64 time,uint64 expirationTime,bool revocable,bytes32 refUID,bytes data,bytes32 salt)
```

## Things to know

- **Status: Draft.** It also depends on [ERC-7730](/eip-7730/), which is itself still a Draft.
- An attestation proves *who* vouched for a descriptor, not that it is correct. A malicious or compromised attester can still sign a misleading descriptor; trust lists are the wallet's job.
- Set a bounded `expirationTime`. Attestations with `0` never expire and rely entirely on revocation.
- Don't trust the attestation source to report revocations; query EAS (or a mirror you trust) yourself.
- Cached ERC-1271 results for contract attesters must have a time limit, since the contract can change its validation logic.
- Attester addresses are public and permanently linked to the descriptor hashes they sign.


---

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