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-1812, a proposal that uses EIP-712 signatures to support secure, reusable off-chain claims, such as identity verification, without storing personal information on a blockchain.

The explanation below translates, summarizes, and expands on the original proposal.

I also cover a range of other EIPs.

Overview

ERC-1812 provides a mechanism for issuing and presenting reusable off-chain verifiable claims using signed typed data based on EIP-712.

For more on EIP-712, see the following article.

[EIP-712] Understanding Typed Structured Data Hashing and Signing

Verifiable claims allow an entity, such as a KYC provider or government agency, to issue assertions that others can verify. Examples include claims that a person is at least 20 years old or is a resident. ERC-1812 allows these claims to be stored off-chain in an EIP-712-compatible format and verified using smart contracts, state channels, or external libraries.

Users can use their Web3 wallets to issue signed claims, store them off-chain, and present them when needed. This supports cost-effective verification without requiring personal information to be permanently recorded on-chain. The reliability of a claim also depends on whether its issuer is trusted.

Motivation

Connecting smart contracts to real-world institutions often requires processes such as know-your-customer (KYC) verification, regulatory compliance, GDPR-related data protection, and verification of accredited investor status. Verifiable claims play an important role in supporting these processes.

Earlier standards, such as ERC-735 and ERC-780, used on-chain storage for claims. Although this is useful in some cases, it creates problems in others. Under regulations such as the EU's GDPR, recording personally identifiable information (PII) on a public blockchain may be legally impermissible in certain circumstances.

For more on ERC-735, see the following article.

[ERC-735] Managing Claims with Smart Contracts

For more on ERC-780, see the following article.

[ERC-780] Managing Claims On-Chain

These considerations create a need for verifiable claims that can be stored off-chain. Existing solutions, including W3C Verifiable Claims and uPort, use formats such as JSON-LD and JWT. Integrating those formats directly into the Ethereum ecosystem can be difficult.

This is where EIP-712 becomes relevant. It defines a signing format based on Solidity-compatible encoding of structured data and is supported by Ethereum wallets and Web3 clients. Smart contracts can use this format to verify both the signed data and its signature, enabling lightweight, reusable verifiable claims.

Users can present claims only when needed, and issued claims can be reused across different smart contracts where the applicable domain and verification policy permit it. The approach aims to provide secure, compliance-friendly, and developer-friendly identity verification.

Specification

Definition of a claim

A verifiable claim is an assertion by an issuer that a subject possesses a particular attribute or value.

ERC-1812 represents such claims using EIP-712 typed data structures. The claim representation must be deterministic so that repeated issuance of the same claim by the same issuer produces the same claim data and digest.

Claim structure

Every claim is defined by a structure appropriate to its purpose, with at least the following three fields.

  • subject The subject's Ethereum address, identifying whom the claim concerns.
  • validFrom The beginning of the claim's validity period, expressed as a Unix timestamp in seconds.
  • validTo The end of the claim's validity period, also expressed as a Unix timestamp. For a claim without a specified expiration, use the maximum uint256 value (0xffff...ffff).

For example, a claim asserting that the issuer knows a particular address can use the following structure.

solidity
struct Know {
  address subject;
  uint256 validFrom;
  uint256 validTo;
}

Claim verification (Verifying Contract)

To verify claims in a smart contract, define a dedicated verifying contract exposing a verification function. The following example recovers the issuer's signing address and checks the validity timestamps.

solidity
function verifyIssuer(Know memory claim, uint8 v, bytes32 r, bytes32 s) public returns (address) {
  bytes32 digest = keccak256(
    abi.encodePacked(
      "\x19\x01",
      DOMAIN_SEPARATOR,
      hash(claim)
    )
  );
  require(
    (claim.validFrom <= block.timestamp) && (block.timestamp < claim.validTo),
    "invalid issuance timestamps"
  );
  return ecrecover(digest, v, r, s);
}

Using claims in Solidity functions

A smart contract function that verifies a claim and records its result can be written as follows.

solidity
function vouch(Know memory claim, uint8 v, bytes32 r, bytes32 s) public returns (bool) {
  address issuer = verifier.verifyIssuer(claim, v, r, s);
  require(issuer != address(0));
  knows[issuer][claim.subject] = block.number;
  return true;
}

Nesting and embedding claims

A claim can be embedded in another structure that also contains its signature components (v, r, s). This allows more complex chains of verifiable claims to be constructed.

solidity
struct VerifiableReference {
  Know delegate;
  uint8 v;
  bytes32 r;
  bytes32 s;
}

struct Introduction {
  address recipient;
  VerifiableReference issuer;
}

Using claims in state channels

ERC-1812 does not define a specific state channel protocol, but protocols based on EIP-712 can incorporate this mechanism for privately exchanging identity claims. Identity information can be shared off-chain, and the channel can ultimately be closed without publishing that information to the blockchain.

Key delegation and signing

The signer of a claim is not necessarily the entity issuing it. Business or operational requirements may call for signing authority to be delegated to a different key pair. Examples include rotating server-side signing keys and managing issuance permissions for individual employees.

This can be represented by adding an issuer field to the structure.

solidity
struct Know {
  address subject;
  address issuer;
  uint256 validFrom;
  uint256 validTo;
}

In this case, ERC-1056 (EthereumDIDRegistry) can be used to check whether the recovered signer is an authorized delegate of the issuer rather than the issuer itself.

solidity
registry.validDelegate(issuer, "veriKey", recoveredAddress);

For more on ERC-1056, see the following article.

[ERC-1056] Understanding Decentralized Identity Registries

Embedded delegation proofs

An authorized delegate can also be embedded within a claim, together with proof of the delegate's authority to issue that particular type of claim.

solidity
struct Delegate {
  address issuer;
  address subject;
  uint256 validFrom;
  uint256 validTo;
}

struct VerifiableDelegate {
  Delegate delegate;
  uint8 v;
  bytes32 r;
  bytes32 s;
}

struct Know {
  address subject;
  VerifiableDelegate issuer;
  uint256 validFrom;
  uint256 validTo;
}

This allows an organization's internal authorization arrangements to be incorporated into the claim structure.

Types of claims

Binary claims

Examples include assertions that the subject address represents a person or belongs to an owner.

solidity
struct Person {
  address issuer;
  address subject;
  uint256 validFrom;
  uint256 validTo;
}

Value claims

These are assertions that contain a particular value, such as a name of Alice or an account balance of 1234555.

solidity
struct Name {
  address issuer;
  address subject;
  string name;
  uint256 validFrom;
  uint256 validTo;
}

Because such values can constitute personally identifiable information, care is needed when handling them in smart contracts on public blockchains.

Hashed claims

These claims use hashes rather than directly including personal information. For example, a claim may assert that a name hashes to keccak256("Alice").

solidity
struct Email {
  address issuer;
  address subject;
  bytes32 keccak256;
  uint256 validFrom;
  uint256 validTo;
}

EIP-712 domain structure

EIP-712 requires the schema of the data to be signed to be defined. The following is an example domain configuration.

json
{
  "name": "EIP1???Claim",
  "version": "1",
  "chainId": 1,
  "verifyingContract": "0x...",
  "salt": "..."
}

Different types can be defined for different claims and presented as signed messages.

Revocation

Claims should be revocable by either the issuer or the subject. Revocation status can be managed in an on-chain registry whose state can be consulted by the verifying contract.

solidity
contract RevocationRegistry {
  mapping (bytes32 => mapping (address => uint)) public revocations;

  function revoke(bytes32 digest) public returns (bool) {
    revocations[digest][msg.sender] = block.number;
    return true;
  }

  function revoked(address party, bytes32 digest) public view returns (bool) {
    return revocations[digest][party] > 0;
  }
}

The verifier checks the registry for revocation as follows.

solidity
require(!revocations.revoked(issuer, digest), "claim was revoked by issuer");
require(!revocations.revoked(claim.subject, digest), "claim was revoked by subject");

Creating verifiable claim domains

Classifying and standardizing verifiable claims is outside the scope of this proposal. Important claim schemas, such as those for KYC and investor eligibility, are expected to be developed through EIPs or other standardization processes. Developers can design domains and claim granularity to suit individual use cases.

Rationale

Why use EIP-712 signed typed data?

EIP-712 defines a standard for signing typed data used in Ethereum Layer 1 and Layer 2 applications. It provides a foundation for building verifiable claims.

Signed typed data allows the integrity of structured data and the signing address to be verified. This is important for reliable digital claims in real-world applications such as KYC, asset ownership verification, and role-based authorization.

Why not use a single EIP-712 domain?

EIP-712 introduces the concept of a domain associated with a signature. A domain acts as a namespace defining the context and scope of a signature. It can include information such as name, version, chainId, and verifyingContract.

ERC-1812 recommends using different domains for different purposes rather than placing all claims in a single EIP-712 domain. There are several reasons for this design.

  • Expressing the purpose of a claim Different domains help distinguish identity verification claims from ownership claims, for example.
  • Preventing misuse Domains and types can define claims restricted to particular purposes, preventing unintended reuse in other contexts when verification enforces the expected domain and type.
  • Facilitating community-led extensions Creating purpose-specific domains and types makes it easier to experiment with and standardize new use cases.

The flexibility to design domains for individual purposes is therefore an important benefit of EIP-712 and supports the development of verifiable claims.

Test cases

ERC-1812 provides Solidity examples demonstrating how to use verifiable claims based on EIP-712. The following are representative verifiers and smart contracts.

Verifier for simple identity claims

This verifier validates a simple identity verification claim (IdVerification Claim) containing minimal personal information. For example, it can verify an assertion that a particular person's identity has already been checked. A smart contract can thereby perform verification while limiting personal information exposure.

Ownership proof verifier

This verifier validates an ownership proof (OwnershipProof) signed by a user's wallet. It can be used when users need to demonstrate control of their own addresses.

Smart contract example: KYCCoin.sol

This smart contract enables token holders to register their addresses on an allowlist using reusable identity verification claims (IdVerification Claims). Users with a claim issued by a trusted verifier can obtain permission to use the token themselves.

Smart contract example: ConsortiumAgreement.sol

This contract addresses authorization management in a consortium formed by multiple organizations or companies. Each member can issue delegated claims authorizing employees or systems to act on its behalf. This enables flexible delegation of organizational roles and access control.

RevocationRegistry

A shared registry, RevocationRegistry.sol, is also implemented to track revocation when claims subsequently become invalid. By allowing issuers or subjects to revoke claims, verifiers can check their validity at verification time.

Together, these mechanisms support a verifiable claim framework whose validity can depend on time and current revocation state.

Citation

Pelle Braendgaard (@pelle), "ERC-1812: Ethereum Verifiable Claims [DRAFT]," Ethereum Improvement Proposals, no. 1812, March 2019. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-1812.

Conclusion

This article covered ERC-1812, a proposal for secure, reusable off-chain claims such as identity verification, using EIP-712 signatures without requiring personal information to be stored on a blockchain.

If you have questions, feel free to reach out via Twitter DM.

Twitter @cardene777

I also publish on the following platforms.

https://chaldene.net/