---
eip: 5539
label: ERC-5539
title: Revocation List Registry
status: Stagnant
type: Standards Track
category: ERC
created: 2022-08-26
requires: 712
official: https://eips.ethereum.org/EIPS/eip-5539
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-5539.md
canonical: https://eips.huatuo.xyz/eip-5539/
lang: en
tldr: A shared onchain registry where any address can publish revocation lists, so issuers of credentials can revoke them without hosting their own revocation server.
tags: [revocation, credentials, identity, registry, eip-712]
---

# ERC-5539: Revocation List Registry

> Registry of revocation lists for revoking arbitrary data.

**TL;DR:** A shared onchain registry where any address can publish revocation lists, so issuers of credentials can revoke them without hosting their own revocation server.

## What problem does it solve?

Anything that can be issued, such as a certificate, a verifiable credential or a signed attestation, eventually needs to be revoked. Traditional PKI uses certificate revocation lists (CRLs) served over HTTP, which depend on servers and caches the issuer must run, or outsource to a few large providers. That is a central point of failure and of control.

ERC-5539 proposes a single registry contract, `EthereumRevocationRegistry`, deployed once and shared by everyone. Issuers record revocations onchain; verifiers just make a view call.

## How it works

Revocation state is addressed by three values:

```
(namespace: address, list: bytes32, key: bytes32) -> revoked: bool
```

- **Namespace:** every Ethereum address automatically has one and initially owns all lists in it.
- **Revocation list:** identified by a `bytes32` within the namespace. A list can itself be revoked, which makes every key in it count as revoked.
- **Revocation key:** a `bytes32` identifier for the thing being revoked (for example, a hash of a credential ID).

Required functions are `isRevoked(namespace, list, key)` and `changeStatus(revoked, namespace, list, key)`, plus the `RevocationStatusChanged` event. Optional extensions cover:

- **Batch updates:** `changeStatusesInList` for many keys at once.
- **Delegates:** the list owner can `addListDelegate` / `removeListDelegate`; delegates use the `...Delegated` variants.
- **Ownership transfer** of a single list: `changeListOwner`.
- **List-level revocation:** `changeListStatus`, `listIsRevoked`.
- **Meta transactions:** `...Signed` variants accept an [EIP-712](/eip-712/) signature from the owner or delegate, so a relayer can pay gas. Signatures must be single-use; a dedicated per-signer nonce is recommended.

Each management action has its own event (`RevocationListOwnerChanged`, `RevocationListDelegateAdded`, etc.), so the full history can be indexed.

## Sample code

Issuer revokes a credential and a verifier checks it (ethers v6):

```ts
import { Contract, JsonRpcProvider, Wallet, id } from "ethers";

const abi = [
  "function changeStatus(bool revoked, address namespace, bytes32 revocationList, bytes32 revocationKey)",
  "function isRevoked(address namespace, bytes32 list, bytes32 key) view returns (bool)",
];
const provider = new JsonRpcProvider(process.env.RPC_URL);
const issuer = new Wallet(process.env.PRIVATE_KEY!, provider);
const registry = new Contract(REGISTRY_ADDRESS, abi, issuer);

const list = id("employee-badges-2026");   // bytes32 list id
const key = id("credential:12345");         // bytes32 revocation key

// issuer revokes in its own namespace
await (await registry.changeStatus(true, issuer.address, list, key)).wait();

// any verifier, read-only
const revoked: boolean = await registry.isRevoked(issuer.address, list, key);
```

## Things to know

- Status: **Stagnant**. There is no canonical deployment address defined in the spec; anyone relying on it must agree on which registry instance to use.
- Revocation keys are public onchain. Use hashes or opaque identifiers, never personal data.
- The spec text has some copy-paste slips (for example, `changeListOwner` is described as changing a revocation status, and one `removeListDelegate` parameter is named `owner`); follow the function signatures and events.
- The pattern fits issuers of credentials such as soulbound tokens ([ERC-5484](/eip-5484/)) or DID-style identity registries ([ERC-1056](/eip-1056/)).


---

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