Introduction

Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.

I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.

I also build and publish a variety of tools, libraries, and open-source projects.

This article examines ERC-5539, a proposal for managing the validity and revocation of data and credentials on-chain.

This article translates, summarizes, and expands on the specification linked below.

I also cover a variety of other EIPs.

Overview

ERC-5539 proposes an interface for recording and verifying that data or a credential is no longer valid in a secure and trustworthy way on a blockchain.

Motivation

Both centralized and decentralized systems need a way to indicate that certificates, credentials, and permissions are no longer valid because they have been revoked.

Traditionally, a certificate revocation list (CRL) is published on an HTTP server. This approach has several drawbacks.

Weaknesses of centralized infrastructure

Existing revocation lists are centralized in several respects.

  • The list is hosted on a particular server.
  • It depends on the server's caching and network configuration.
  • It is vulnerable to attacks, such as attacks on the server or DNS tampering.

Public-key cryptography is inherently a secure technology, but if revocation checks depend on a central server, they cannot be performed reliably when that server is unavailable or compromised. Security can no longer be guaranteed.

Issuers may not want to maintain revocation information themselves

Many certificate issuers find running their own revocation lists burdensome and rely on third-party infrastructure providers such as Cloudflare or AWS.

This brings the system back to a centralized model. Ideally, issuers should be able to focus on issuing certificates and credentials rather than operating infrastructure.

Specification

This EIP defines the specification for a contract called EthereumRevocationRegistry.
Its primary purpose is to provide a mechanism for managing the revocation status of credentials.

Each Ethereum address has its own namespace, which can contain multiple revocation lists (revocation list). Each list contains entries identified by a revocation key (revocation key), representing the items that can be revoked.

Terminology

Term Meaning
namespace A namespace representing an Ethereum address, serving as a unit for managing lists.
revocation list A list within a namespace that records which entries have been revoked.
revocation key The identifier of an item whose revocation status is checked. It is managed within a list.
owner The administrator of the namespace and its lists. Management authority can be delegated or transferred.
delegate An address temporarily granted management authority. Delegates are configured per list.
  • An Ethereum address can own its own namespace.
  • Multiple revocation lists can be created within that namespace.
  • Each revocation list is identified by a unique bytes32 key.
  • A revocation key (revocation key) can be registered for each item in a list, recording whether it has been revoked (true) or remains valid (false).

Managing permissions

owner

The owner is responsible for managing a namespace and the revocation lists within it. The owner can delegate some management responsibilities to another address or transfer ownership entirely.

delegate

A delegate is an address temporarily granted authority to manage a list. Only the owner of that list can grant authority to a delegate. That authority can be revoked at any time if necessary.

Functions

Revocation Management

isRevoked
js
function isRevoked(address namespace, bytes32 list, bytes32 key) public view returns (bool);

Checks whether a specified key has been revoked (true/false) using its namespace, revocation list, and revocation key.

changeStatus
js
function changeStatus(bool revoked, address namespace, bytes32 revocationList, bytes32 revocationKey) public;

Changes the revocation status of the specified key. Setting the revoked argument to true revokes the key, while false restores it.

changeStatusSigned
js
function changeStatusSigned(bool revoked, address namespace, bytes32 revocationList, bytes32 revocationKey, address signer, bytes calldata signature) public;

Executes changeStatus using a signature. It supports meta transactions, in which a third party covers the gas cost.

changeStatusDelegated
js
function changeStatusDelegated(bool revoked, address namespace, bytes32 revocationList, bytes32 revocationKey) public;

Allows a delegated address (delegate) to change the revocation status of a key. A delegate can perform the operation without being the owner.

changeStatusDelegatedSigned
js
function changeStatusDelegatedSigned(bool revoked, address namespace, bytes32 revocationList, bytes32 revocationKey, address signer, bytes calldata signature) public;

Allows a delegated address to change the status using a signature. This function also supports meta transactions.

changeStatusesInList
js
function changeStatusesInList(bool[] memory revoked, address namespace, bytes32 revocationList, bytes32[] memory revocationKeys) public;

Changes the revocation status of multiple keys in a single operation. It is useful for batch processing.

The following signed and delegate variants are also available.

  • changeStatusesInListSigned(...)
  • changeStatusesInListDelegated(...)
  • changeStatusesInListDelegatedSigned(...)

Revocation List Management

listIsRevoked
js
function listIsRevoked(address namespace, bytes32 revocationList) view public returns (bool);

Checks whether an entire list has been revoked. If the list itself has been revoked, every key in it is treated as revoked.

changeListStatus
js
function changeListStatus(bool revoked, address namespace, bytes32 revocationList) public;

Revokes or restores an entire list. This operates at the list level rather than on individual keys.

A signed variant, changeListStatusSigned(...), is also available.

Owner Management

changeListOwner
js
function changeListOwner(address newOwner, address namespace, bytes32 revocationList) public;

Transfers ownership of a list to another address. After the transfer, the new owner manages the list. Ownership can also be transferred using a signature with changeListOwnerSigned(...).

Delegation Management

addListDelegate
js
function addListDelegate(address delegate, address namespace, bytes32 revocationList) public;

Adds a delegate to the specified list. The newly added address can perform revocation operations on the list.

A meta transaction variant, addListDelegateSigned(...), can also be implemented.

removeListDelegate
js
function removeListDelegate(address delegate, address owner, bytes32 revocationList) public;

Removes a delegate from a list.

A signed removal function, removeListDelegateSigned(...), can also be implemented.

Events

RevocationStatusChanged

Emitted when a revocation status changes.
It is emitted after a successful state change by any of the following functions.

  • changeStatus
  • changeStatusSigned
  • changeStatusDelegated
  • changeStatusDelegatedSigned
  • changeStatusesInList
  • changeStatusesInListSigned
  • changeStatusesInListDelegated
  • changeStatusesInListDelegatedSigned
js
event RevocationStatusChanged(
    address indexed namespace,
    bytes32 indexed revocationList,
    bytes32 indexed revocationKey,
    bool revoked
);
  • namespace
    • The relevant owner address.
  • revocationList
    • The ID of the list being modified.
  • revocationKey
    • The key whose revocation status changed.
  • revoked
    • true means the key has been revoked, while false means it has been restored to valid status.

RevocationListOwnerChanged

Emitted when ownership of a revocation list changes. It is emitted after either of the following functions executes successfully.

  • changeListOwner
  • changeListOwnerSigned
js
event RevocationListOwnerChanged(
    address indexed namespace,
    bytes32 indexed revocationList,
    address indexed newOwner
);
  • namespace
    • The original owner's address.
  • revocationList
    • The ID of the relevant list.
  • newOwner
    • The address of the new owner.

RevocationListDelegateAdded

Emitted when a delegate (delegate) is added to a revocation list. It is emitted when either of the following functions executes.

  • addListDelegate
  • addListDelegateSigned
js
event RevocationListDelegateAdded(
    address indexed namespace,
    bytes32 indexed revocationList,
    address indexed delegate
);
  • namespace
    • The address of the delegating owner.
  • revocationList
    • The ID of the list to which the delegation applies.
  • delegate
    • The delegated address.

RevocationListDelegateRemoved

Emitted when a delegate is removed from a revocation list. It is emitted after either of the following functions executes successfully.

  • removeListDelegate
  • removeListDelegateSigned
js
event RevocationListDelegateRemoved(
    address indexed namespace,
    bytes32 indexed revocationList,
    address indexed delegate
);
  • namespace
    • The address of the owner performing the operation.
  • revocationList
    • The ID of the relevant list.
  • delegate
    • The address of the removed delegate.

RevocationListStatusChanged

Emitted when an entire list is revoked or restored. It is emitted after either of the following functions executes successfully.

  • changeListStatus
  • changeListStatusSigned
js
event RevocationListStatusChanged(
    address indexed namespace,
    bytes32 indexed revocationlist,
    bool revoked
);
  • namespace
    • The relevant owner address.
  • revocationlist
    • The ID of the relevant list.
  • revoked
    • true means the entire list has been revoked, while false means the revocation has been lifted.

Meta Transactions

A meta transaction allows a user to have someone else submit a transaction to the blockchain on their behalf, rather than submitting it themselves.
ERC-5539 also proposes using meta transactions to let another party execute revocation operations on a user's behalf.

Transaction signer and sender

  • Transaction signer

Signs the data intended for the contract, such as a request to change revocation status, but does not submit the transaction itself.

  • Transaction sender

Receives the signed data, sends it to the contract from their own address, and submits the transaction to the blockchain.

This enables flexible arrangements in which user A only signs and user B submits the transaction on their behalf.
This mechanism is commonly used in dApps that do not want users to pay gas fees, for example.

Signed data must be single-use

If signed data (the payload) can be used more than once, it creates a risk of replay attacks in which the same signature is reused.
ERC-5539 therefore recommends the following two measures.

  • EIP-712 signatures (signed hash)
  • Use of a nonce
Signing with EIP-712 (signed hash)

EIP-712 is a signature format that displays what is being signed in a human-readable form.
For example, a signer can verify that they are signing an operation that sets a revocation key to true before signing.

The structured contents of an EIP-712 signature also help protect against replay attacks.

For more information about EIP-712, see the article below.

[EIP712] Hashing and Signing Typed Structured Data

How nonces work

ERC-5539 recommends maintaining a dedicated nonce (a single-use number) for each transaction signer.

The process works as follows.

  1. The signer signs a meta transaction.
  2. The sender submits the data to the contract.
  3. The contract checks the signature and nonce.
  4. If successful, the signer's nonce is incremented by one.

This prevents the same signature from being reused and preserves security.

Additional details

Why use a namespace?

A namespace is a dedicated space automatically provided for each Ethereum address.
This means that each address has its own area reserved before it uses the contract.

Benefits

  • No prior registration required

Each address automatically has its own namespace, so it does not need to explicitly reserve an area in the contract.

  • Clearly defined management authority

Initially, only the address itself can manage resources within its associated namespace.

A namespace therefore provides a clear location for the revocation information associated with an address, enabling data isolation between users.

Why does the namespace remain tied to the original address?

Suppose ownership of a revocation list in a namespace is transferred from A to B.
Changing the namespace itself to B could break consistency with external systems or data that previously referenced A's namespace.

For example, A records that a certificate has been revoked, and another service records that a particular key in A's namespace has been revoked. If the namespace moves to B, that service can no longer access the correct information through its original reference.

The namespace therefore serves as a fixed reference point that preserves consistency with historical information.
Even when the list's owner changes, the namespace remains tied to the original address, preserving consistency with historical off-chain data and external systems.

Security

Risks associated with meta transactions

Meta transactions allow other parties to submit data signed by a user on that user's behalf.
They are convenient, but signed data may be reused on other chains or in different versions of a contract, resulting in replay attacks.

Examples

  • Data signed for Ethereum Mainnet is reused by someone on another chain, such as Polygon.
  • The data is reused in another contract with the same logic.

To prevent unintended reuse across chains and contracts, ERC-5539 adopts EIP-712 signatures.

EIP-712 makes the following possible.

  • Including information about the intended contract and the intended chain in a signature.
  • Allowing users to clearly verify what they are signing.
  • Providing effective protection against replay attacks.

Permission management considerations

ERC-5539 provides a mechanism for restricting which addresses can operate on each revocation list.
Role-specific access controls prevent unauthorized changes to revocation statuses or the addition of delegates.

  • Only the owner can administer the list, including changing its status and adding or removing delegates.
  • The contract makes it possible to determine who has write permission for each list.
  • A delegater (delegate) cannot be configured without permission from the owner, and that authority can be revoked at any time.

This enables the following.

  • Preventing unauthorized modification of revocation information.
  • Maintaining transparency and traceability.
  • Establishing clear accountability.

Citation

Philipp Bolte (@strumswell), Lauritz Leifermann (@lleifermann), Dennis von der Bey (@DennisVonDerBey), "ERC-5539: Revocation List Registry [DRAFT]," Ethereum Improvement Proposals, no. 5539, August 2022. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-5539.

Conclusion

This article covered ERC-5539, a proposal for managing the validity and revocation of data and credentials on-chain. I hope this explanation was helpful.

If you have questions, feel free to reach out via direct message on Twitter.

Twitter @cardene777

I also publish content on other platforms, which you can find below.

https://chaldene.net/