ERC-5539 · Stagnant · ERC · 2022-08-26
ERC-5539: Revocation List Registry
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
bytes32within the namespace. A list can itself be revoked, which makes every key in it count as revoked. - Revocation key: a
bytes32identifier 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:
changeStatusesInListfor many keys at once. - Delegates: the list owner can
addListDelegate/removeListDelegate; delegates use the...Delegatedvariants. - Ownership transfer of a single list:
changeListOwner. - List-level revocation:
changeListStatus,listIsRevoked. - Meta transactions:
...Signedvariants accept an 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):
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,
changeListOwneris described as changing a revocation status, and oneremoveListDelegateparameter is namedowner); follow the function signatures and events. - The pattern fits issuers of credentials such as soulbound tokens (ERC-5484) or DID-style identity registries (ERC-1056).