{"eip":5539,"title":"Revocation List Registry","description":"Registry of revocation lists for revoking arbitrary data.","authors":["Philipp Bolte (@strumswell)","Lauritz Leifermann (@lleifermann)","Dennis von der Bey (@DennisVonDerBey)"],"status":"Stagnant","type":"Standards Track","category":"ERC","created":"2022-08-26","requires":[712],"discussionsTo":"https://ethereum-magicians.org/t/eip-5539-revocation-list-registry/10573","repo":"ERCs","label":"ERC-5539","officialUrl":"https://eips.ethereum.org/EIPS/eip-5539","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-5539.md","url":"https://eips.huatuo.xyz/eip-5539/","tldr":{"en":"A shared onchain registry where any address can publish revocation lists, so issuers of credentials can revoke them without hosting their own revocation server.","ja":"任意のアドレスが失効リストを公開できる、共有のオンチェーンレジストリ。資格証明の発行者は、自前の失効サーバーを運用せずに失効させられる。","ko":"어떤 주소든 폐기 목록을 게시할 수 있는 공유 온체인 레지스트리. 자격 증명 발행자가 자체 폐기 서버를 운영하지 않고도 폐기할 수 있다.","zh":"一个共享的链上注册表，任何地址都可以发布吊销列表，让凭证的签发方无需自建吊销服务器即可吊销凭证。"},"tags":["revocation","credentials","identity","registry","eip-712"],"explainers":{"en":{"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"],"related":[712,1056,5484],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-5539/","markdown":"## What problem does it solve?\n\nAnything 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.\n\nERC-5539 proposes a single registry contract, `EthereumRevocationRegistry`, deployed once and shared by everyone. Issuers record revocations onchain; verifiers just make a view call.\n\n## How it works\n\nRevocation state is addressed by three values:\n\n```\n(namespace: address, list: bytes32, key: bytes32) -\u003e revoked: bool\n```\n\n- **Namespace:** every Ethereum address automatically has one and initially owns all lists in it.\n- **Revocation list:** identified by a `bytes32` within the namespace. A list can itself be revoked, which makes every key in it count as revoked.\n- **Revocation key:** a `bytes32` identifier for the thing being revoked (for example, a hash of a credential ID).\n\nRequired functions are `isRevoked(namespace, list, key)` and `changeStatus(revoked, namespace, list, key)`, plus the `RevocationStatusChanged` event. Optional extensions cover:\n\n- **Batch updates:** `changeStatusesInList` for many keys at once.\n- **Delegates:** the list owner can `addListDelegate` / `removeListDelegate`; delegates use the `...Delegated` variants.\n- **Ownership transfer** of a single list: `changeListOwner`.\n- **List-level revocation:** `changeListStatus`, `listIsRevoked`.\n- **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.\n\nEach management action has its own event (`RevocationListOwnerChanged`, `RevocationListDelegateAdded`, etc.), so the full history can be indexed.\n\n## Sample code\n\nIssuer revokes a credential and a verifier checks it (ethers v6):\n\n```ts\nimport { Contract, JsonRpcProvider, Wallet, id } from \"ethers\";\n\nconst abi = [\n  \"function changeStatus(bool revoked, address namespace, bytes32 revocationList, bytes32 revocationKey)\",\n  \"function isRevoked(address namespace, bytes32 list, bytes32 key) view returns (bool)\",\n];\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst issuer = new Wallet(process.env.PRIVATE_KEY!, provider);\nconst registry = new Contract(REGISTRY_ADDRESS, abi, issuer);\n\nconst list = id(\"employee-badges-2026\");   // bytes32 list id\nconst key = id(\"credential:12345\");         // bytes32 revocation key\n\n// issuer revokes in its own namespace\nawait (await registry.changeStatus(true, issuer.address, list, key)).wait();\n\n// any verifier, read-only\nconst revoked: boolean = await registry.isRevoked(issuer.address, list, key);\n```\n\n## Things to know\n\n- Status: **Stagnant**. There is no canonical deployment address defined in the spec; anyone relying on it must agree on which registry instance to use.\n- Revocation keys are public onchain. Use hashes or opaque identifiers, never personal data.\n- 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.\n- The pattern fits issuers of credentials such as soulbound tokens ([ERC-5484](/eip-5484/)) or DID-style identity registries ([ERC-1056](/eip-1056/)).\n"},"ja":{"lang":"ja","tldr":"任意のアドレスが失効リストを公開できる、共有のオンチェーンレジストリ。資格証明の発行者は、自前の失効サーバーを運用せずに失効させられる。","tags":["revocation","credentials","identity","registry","eip-712"],"related":[712,1056,5484],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-5539/","markdown":"## 何を解決するのか\n\n証明書、検証可能な資格情報（Verifiable Credential）、署名付きアテステーションなど、発行できるものは、いずれ失効させる必要が出てきます。従来の PKI は HTTP で配信される証明書失効リスト（CRL）を使いますが、これは発行者が運用するか、少数の大手プロバイダーに委託するサーバーやキャッシュに依存します。これは障害や支配の単一障害点になります。\n\nERC-5539 は、一度だけデプロイされ全員で共有される単一のレジストリコントラクト `EthereumRevocationRegistry` を提案します。発行者は失効をオンチェーンに記録し、検証者は view 呼び出しを行うだけです。\n\n## 仕組み\n\n失効の状態は 3 つの値で指定されます。\n\n```\n(namespace: address, list: bytes32, key: bytes32) -\u003e revoked: bool\n```\n\n- **名前空間（namespace）:** すべての Ethereum アドレスは自動的に 1 つ持っており、その中のすべてのリストを最初は自分が所有します。\n- **失効リスト（revocation list）:** 名前空間内の `bytes32` で識別されます。リスト自体を失効させることもでき、その場合はリスト内のすべてのキーが失効扱いになります。\n- **失効キー（revocation key）:** 失効させる対象（たとえば資格証明 ID のハッシュ）を表す `bytes32` の識別子です。\n\n必須の関数は `isRevoked(namespace, list, key)` と `changeStatus(revoked, namespace, list, key)`、および `RevocationStatusChanged` イベントです。任意の拡張は次をカバーします。\n\n- **バッチ更新:** 多数のキーを一度に更新する `changeStatusesInList`。\n- **デリゲート:** リストのオーナーは `addListDelegate` / `removeListDelegate` ができ、デリゲートは `...Delegated` 系の関数を使います。\n- 単一リストの**オーナーシップ移転**: `changeListOwner`。\n- **リスト単位の失効:** `changeListStatus`、`listIsRevoked`。\n- **メタトランザクション:** `...Signed` 系の関数は、オーナーまたはデリゲートによる [EIP-712](/eip-712/) 署名を受け付けるため、リレイヤーがガス代を支払えます。署名は 1 回限りでなければならず、署名者ごとの専用 nonce が推奨されます。\n\n各管理操作には専用のイベント（`RevocationListOwnerChanged`、`RevocationListDelegateAdded` など）があるため、履歴全体をインデックスできます。\n\n## サンプルコード\n\n発行者が資格証明を失効させ、検証者が確認する例（ethers v6）:\n\n```ts\nimport { Contract, JsonRpcProvider, Wallet, id } from \"ethers\";\n\nconst abi = [\n  \"function changeStatus(bool revoked, address namespace, bytes32 revocationList, bytes32 revocationKey)\",\n  \"function isRevoked(address namespace, bytes32 list, bytes32 key) view returns (bool)\",\n];\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst issuer = new Wallet(process.env.PRIVATE_KEY!, provider);\nconst registry = new Contract(REGISTRY_ADDRESS, abi, issuer);\n\nconst list = id(\"employee-badges-2026\");   // bytes32 list id\nconst key = id(\"credential:12345\");         // bytes32 revocation key\n\n// issuer revokes in its own namespace\nawait (await registry.changeStatus(true, issuer.address, list, key)).wait();\n\n// any verifier, read-only\nconst revoked: boolean = await registry.isRevoked(issuer.address, list, key);\n```\n\n## 知っておくべきこと\n\n- ステータス: **Stagnant**。仕様には正規のデプロイアドレスが定義されていません。これに依存する人は、どのレジストリのインスタンスを使うかを合意しておく必要があります。\n- 失効キーはオンチェーンで公開されます。ハッシュや不透明な識別子を使い、個人データは決して使わないでください。\n- 仕様の文章にはコピー＆ペーストのミスがいくつかあります（たとえば、`changeListOwner` が失効ステータスの変更として説明されていたり、`removeListDelegate` のパラメーターの 1 つが `owner` という名前になっていたりします）。関数のシグネチャとイベントに従ってください。\n- このパターンは、ソウルバウンドトークン（[ERC-5484](/eip-5484/)）や DID 型のアイデンティティレジストリ（[ERC-1056](/eip-1056/)）のような資格証明の発行者に適しています。\n"},"ko":{"lang":"ko","tldr":"어떤 주소든 폐기 목록을 게시할 수 있는 공유 온체인 레지스트리. 자격 증명 발행자가 자체 폐기 서버를 운영하지 않고도 폐기할 수 있다.","tags":["revocation","credentials","identity","registry","eip-712"],"related":[712,1056,5484],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-5539/","markdown":"## 어떤 문제를 해결하나요?\n\n인증서, 검증 가능한 자격 증명(Verifiable Credential), 서명된 증명처럼 발행할 수 있는 것은 언젠가 폐기해야 합니다. 전통적인 PKI는 HTTP로 제공되는 인증서 폐기 목록(CRL)을 사용하는데, 이는 발행자가 직접 운영하거나 소수의 대형 제공업체에 맡겨야 하는 서버와 캐시에 의존합니다. 이는 장애와 통제의 단일 지점이 됩니다.\n\nERC-5539는 한 번만 배포되어 모두가 공유하는 단일 레지스트리 컨트랙트 `EthereumRevocationRegistry`를 제안합니다. 발행자는 폐기를 온체인에 기록하고, 검증자는 view 호출만 하면 됩니다.\n\n## 어떻게 동작하나요?\n\n폐기 상태는 세 가지 값으로 지정됩니다.\n\n```\n(namespace: address, list: bytes32, key: bytes32) -\u003e revoked: bool\n```\n\n- **네임스페이스(namespace):** 모든 이더리움 주소는 자동으로 하나를 가지며, 처음에는 그 안의 모든 목록을 소유합니다.\n- **폐기 목록(revocation list):** 네임스페이스 안의 `bytes32`로 식별됩니다. 목록 자체를 폐기할 수도 있으며, 이 경우 그 안의 모든 키가 폐기된 것으로 간주됩니다.\n- **폐기 키(revocation key):** 폐기 대상(예: 자격 증명 ID의 해시)을 나타내는 `bytes32` 식별자입니다.\n\n필수 함수는 `isRevoked(namespace, list, key)`와 `changeStatus(revoked, namespace, list, key)`, 그리고 `RevocationStatusChanged` 이벤트입니다. 선택적 확장은 다음을 다룹니다.\n\n- **일괄 갱신:** 여러 키를 한꺼번에 처리하는 `changeStatusesInList`.\n- **대리인(delegate):** 목록 소유자는 `addListDelegate` / `removeListDelegate`를 할 수 있고, 대리인은 `...Delegated` 변형을 사용합니다.\n- 단일 목록의 **소유권 이전**: `changeListOwner`.\n- **목록 단위 폐기:** `changeListStatus`, `listIsRevoked`.\n- **메타 트랜잭션:** `...Signed` 변형은 소유자나 대리인의 [EIP-712](/eip-712/) 서명을 받으므로 릴레이어가 가스비를 낼 수 있습니다. 서명은 일회용이어야 하며, 서명자별 전용 nonce를 권장합니다.\n\n각 관리 동작에는 고유한 이벤트(`RevocationListOwnerChanged`, `RevocationListDelegateAdded` 등)가 있으므로 전체 이력을 인덱싱할 수 있습니다.\n\n## 샘플 코드\n\n발행자가 자격 증명을 폐기하고 검증자가 확인하는 예시입니다(ethers v6).\n\n```ts\nimport { Contract, JsonRpcProvider, Wallet, id } from \"ethers\";\n\nconst abi = [\n  \"function changeStatus(bool revoked, address namespace, bytes32 revocationList, bytes32 revocationKey)\",\n  \"function isRevoked(address namespace, bytes32 list, bytes32 key) view returns (bool)\",\n];\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst issuer = new Wallet(process.env.PRIVATE_KEY!, provider);\nconst registry = new Contract(REGISTRY_ADDRESS, abi, issuer);\n\nconst list = id(\"employee-badges-2026\");   // bytes32 list id\nconst key = id(\"credential:12345\");         // bytes32 revocation key\n\n// issuer revokes in its own namespace\nawait (await registry.changeStatus(true, issuer.address, list, key)).wait();\n\n// any verifier, read-only\nconst revoked: boolean = await registry.isRevoked(issuer.address, list, key);\n```\n\n## 알아둘 점\n\n- 상태: **Stagnant**. 사양에는 표준 배포 주소가 정의되어 있지 않으므로, 이에 의존하는 쪽은 어떤 레지스트리 인스턴스를 쓸지 합의해야 합니다.\n- 폐기 키는 온체인에서 공개됩니다. 해시나 불투명한 식별자를 사용하고, 개인 정보는 절대 쓰지 마세요.\n- 사양 본문에는 복사·붙여넣기 실수가 몇 군데 있습니다(예: `changeListOwner`가 폐기 상태 변경으로 설명되어 있고, `removeListDelegate`의 파라미터 하나가 `owner`로 명명되어 있습니다). 함수 시그니처와 이벤트를 따르세요.\n- 이 패턴은 소울바운드 토큰([ERC-5484](/eip-5484/))이나 DID 스타일 신원 레지스트리([ERC-1056](/eip-1056/))와 같은 자격 증명 발행자에게 적합합니다.\n"},"zh":{"lang":"zh","tldr":"一个共享的链上注册表，任何地址都可以发布吊销列表，让凭证的签发方无需自建吊销服务器即可吊销凭证。","tags":["revocation","credentials","identity","registry","eip-712"],"related":[712,1056,5484],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-5539/","markdown":"## 它解决什么问题？\n\n任何可以签发的东西，比如证书、可验证凭证或签名证明，最终都需要被吊销。传统 PKI 使用通过 HTTP 提供的证书吊销列表（CRL），这依赖于签发方必须自己运营、或外包给少数大型提供商的服务器和缓存。这是一个中心化的故障点和控制点。\n\nERC-5539 提出了一个单一的注册表合约 `EthereumRevocationRegistry`，只部署一次，由所有人共享。签发方在链上记录吊销；验证方只需进行一次 view 调用。\n\n## 它如何运作\n\n吊销状态由三个值定位：\n\n```\n(namespace: address, list: bytes32, key: bytes32) -\u003e revoked: bool\n```\n\n- **命名空间（namespace）：** 每个以太坊地址自动拥有一个，并且最初拥有其中的所有列表。\n- **吊销列表（revocation list）：** 由命名空间内的一个 `bytes32` 标识。列表本身可以被吊销，这样其中的每个 key 都视为已吊销。\n- **吊销键（revocation key）：** 被吊销对象的 `bytes32` 标识符（例如凭证 ID 的哈希）。\n\n必需的函数是 `isRevoked(namespace, list, key)` 和 `changeStatus(revoked, namespace, list, key)`，以及 `RevocationStatusChanged` 事件。可选扩展包括：\n\n- **批量更新：** `changeStatusesInList`，一次处理多个 key。\n- **委托人：** 列表所有者可以 `addListDelegate` / `removeListDelegate`；委托人使用 `...Delegated` 系列函数。\n- 单个列表的**所有权转移**：`changeListOwner`。\n- **列表级吊销：** `changeListStatus`、`listIsRevoked`。\n- **元交易：** `...Signed` 系列函数接受所有者或委托人的 [EIP-712](/eip-712/) 签名，因此中继方可以支付 gas。签名必须一次性使用；建议使用每个签名者专属的 nonce。\n\n每个管理操作都有自己的事件（`RevocationListOwnerChanged`、`RevocationListDelegateAdded` 等），因此可以对完整历史建立索引。\n\n## 示例代码\n\n签发方吊销凭证，验证方进行检查（ethers v6）：\n\n```ts\nimport { Contract, JsonRpcProvider, Wallet, id } from \"ethers\";\n\nconst abi = [\n  \"function changeStatus(bool revoked, address namespace, bytes32 revocationList, bytes32 revocationKey)\",\n  \"function isRevoked(address namespace, bytes32 list, bytes32 key) view returns (bool)\",\n];\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst issuer = new Wallet(process.env.PRIVATE_KEY!, provider);\nconst registry = new Contract(REGISTRY_ADDRESS, abi, issuer);\n\nconst list = id(\"employee-badges-2026\");   // bytes32 list id\nconst key = id(\"credential:12345\");         // bytes32 revocation key\n\n// issuer revokes in its own namespace\nawait (await registry.changeStatus(true, issuer.address, list, key)).wait();\n\n// any verifier, read-only\nconst revoked: boolean = await registry.isRevoked(issuer.address, list, key);\n```\n\n## 需要注意\n\n- 状态：**Stagnant**。规范中没有定义规范的部署地址；依赖它的人必须就使用哪个注册表实例达成一致。\n- 吊销键在链上是公开的。请使用哈希或不透明的标识符，切勿使用个人数据。\n- 规范文本中有一些复制粘贴的疏漏（例如，`changeListOwner` 被描述为更改吊销状态，`removeListDelegate` 的一个参数被命名为 `owner`）；请以函数签名和事件为准。\n- 该模式适用于灵魂绑定代币（[ERC-5484](/eip-5484/)）或 DID 风格的身份注册表（[ERC-1056](/eip-1056/)）等凭证的签发方。\n"}}}
