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 covers ERC-735, a proposal for checking externally issued KYC and identity verification information in a contract using a common format.

This article translates, summarizes, and expands on the following material.

https://eips.ethereum.org/EIPS/eip-735

I have also written about a range of other EIPs.

Overview

ERC-735 defines a standard smart contract interface for handling information known as a claim. A claim is information issued or attested by a third party about a subject (a person or entity). Examples include statements such as this person lives in Japan or this user has passed biometric authentication.

Claims may be issued by an external third party (the issuer) or self-attested by the subject. Smart contracts and DApps can use these claims to make decisions about a subject, such as whether that subject has completed KYC.

The standard specifies functions for adding, removing, and storing claims. It provides a consistent representation of who issued a claim, what type of information it contains, how it is represented, and where it can be verified.

Motivation

As demand for blockchain-based identity management and identity verification grows, DApps need a way to discover what information is available about individual users. At the time of the proposal, projects implemented their own claim issuance and verification mechanisms without a shared standard, which made interoperability and extensibility difficult.

The proposed interface gives DApps and smart contracts a common way to look up claims. Multiple applications could, for example, reuse the same KYC information or assess the credibility of a claim based on who attested to it (the issuer). Trust is placed in the claim issuer rather than the claim holder.

Terminology

  • Claim Information an issuer holds about a subject, such as their place of residence or whether they have completed biometric authentication.
  • Claim Issuer The smart contract or external account that issues a claim.
  • Claim Holder The identity that is the subject of a claim, such as a user's address.
  • Topic A numerical identifier for the type of claim. For example, 1 = biometric information, 2 = place of residence.
  • Scheme The method used to verify a claim, such as an ECDSA signature, RSA signature, or contract call.
  • Signature A digital signature that proves the issuer issued the claim.
  • Data A hash of the claim's contents.
  • URI The location where the underlying claim data is stored, such as IPFS, Swarm, or an HTTP link.

With this standard interface, smart contracts can access and verify claims from multiple issuers through a common function interface. It provides a basis for a decentralized trust model.

Specification

Claim

javascript
struct Claim {
    uint256 topic;
    uint256 scheme;
    address issuer;
    bytes signature;
    bytes data;
    string uri;
}

A struct representing the contents of a claim. It stores verifiable information issued about a subject. Each claim records the type of information (topic), the verification method (scheme), the issuing party (issuer), signature data, a reference URI, and other details.

Parameters

  • topic
    • A numerical identifier for the type of claim (for example, 1 = biometric authentication, 2 = address).
  • scheme
    • A number identifying the verification method, such as an ECDSA signature or contract-based verification.
  • issuer
    • The address that issued the claim, typically an issuing contract or an external account.
  • signature
    • The issuer's signature over the claim contents, specifically the Keccak256 hash of address + topic + data.
  • data
    • The hash of the claim contents or the underlying data itself.
  • uri
    • An external reference to the claim contents, such as IPFS, Swarm, or HTTP.

ClaimRequested

javascript
event ClaimRequested(uint256 indexed claimRequestId, uint256 indexed topic, uint256 scheme, address indexed issuer, bytes signature, bytes data, string uri);

Emitted when addClaim is called if the implementation has an approval process. The event indicates that a claim has been proposed for addition. An external approval mechanism can inspect the claim and decide whether to add it.

Parameters

  • claimRequestId
    • The claim request identifier.
  • topic
    • The claim topic.
  • scheme
    • The verification method.
  • issuer
    • The issuer's address.
  • signature
    • The signature data.
  • data
    • The claim data.
  • uri
    • The URI of the data.

ClaimAdded

javascript
event ClaimAdded(bytes32 indexed claimId, uint256 indexed topic, uint256 scheme, address indexed issuer, bytes signature, bytes data, string uri);

Emitted when a claim is successfully added. It signals that a new claim has been registered in the contract and includes the unique identifier and contents of the claim.

Parameters

  • claimId
    • The ID of the added claim (a Keccak256 hash).
  • topic
    • The claim topic.
  • scheme
    • The verification method.
  • issuer
    • The issuer's address.
  • signature
    • The signature data.
  • data
    • The claim data.
  • uri
    • The URI of the data.

ClaimRemoved

javascript
event ClaimRemoved(bytes32 indexed claimId, uint256 indexed topic, uint256 scheme, address indexed issuer, bytes signature, bytes data, string uri);

Emitted when a call to removeClaim removes a claim from the contract. It identifies the claim that was removed.

Parameters

  • claimId
    • The ID of the removed claim.
  • topic
    • The claim topic.
  • scheme
    • The verification method.
  • issuer
    • The issuer's address.
  • signature
    • The signature data.
  • data
    • The claim data.
  • uri
    • The URI of the data.

ClaimChanged

javascript
event ClaimChanged(bytes32 indexed claimId, uint256 indexed topic, uint256 scheme, address indexed issuer, bytes signature, bytes data, string uri);

Emitted when an existing claim is modified. It signals that the claim has been updated with new contents.

Parameters

  • claimId
    • The ID of the modified claim.
  • topic
    • The claim topic.
  • scheme
    • The verification method.
  • issuer
    • The issuer's address.
  • signature
    • The new signature data.
  • data
    • The new claim data.
  • uri
    • The new URI.

getClaim

javascript
function getClaim(bytes32 _claimId) public constant returns(uint256 topic, uint256 scheme, address issuer, bytes signature, bytes data, string uri);

Retrieves the information associated with a given claim ID. Pass the claim ID (a Keccak256 hash) to retrieve the details of a registered claim.

Arguments

  • _claimId
    • The unique claim ID.

Return values

  • topic
    • The type of claim.
  • scheme
    • The verification method.
  • issuer
    • The issuer's address.
  • signature
    • The signature attached to the claim.
  • data
    • The claim contents.
  • uri
    • The URI of the external reference.

getClaimIdsByTopic

javascript
function getClaimIdsByTopic(uint256 _topic) public constant returns(bytes32[] claimIds);

Retrieves all claim IDs for a given topic. Returns an array containing the IDs of all claims classified under that topic.

Arguments

  • _topic
    • The claim topic to search for.

Return values

  • claimIds
    • An array of matching claim IDs.

addClaim

javascript
function addClaim(uint256 _topic, uint256 _scheme, address _issuer, bytes _signature, bytes _data, string _uri) public returns (uint256 claimRequestId);

Requests the addition of a new claim or the modification of an existing one. The function is used to request that a third party's (issuer's) claim be added or changed. The issuer makes a statement about a specific topic concerning the claim holder (identity) and attests to it with a signature.

The function has the following properties.

  • Anyone can call it, including the issuer and the subject issuing a claim about themselves (self-issued).
  • Claims are uniquely identified by combining the issuer address and topic using keccak256(issuer, topic) to derive the claim ID.
  • The signature signs data in the following form. keccak256(address identityHolder, uint256 topic, bytes data) This signature proves that the issuer attested to the contents.
  • The contract may either add the claim immediately or register it as pending approval. This allows implementations to introduce an approval process, such as an approve() function.
  • A call to this function may trigger one of three events.
    • A new claim requires approval → ClaimRequested
    • A new claim is registered immediately → ClaimAdded
    • An existing claim is overwritten → ClaimChanged

Topic examples

  • 1: Biometric Data
  • 2: Permanent Address
  • 3: Claim Registry (an undefined topic that can be used for extensions)
Arguments
Name Type Description
_topic uint256 Claim classification (topic) number. For example, 1 = biometric information, 2 = place of residence.
_scheme uint256 Verification scheme. For example, 1 = ECDSA, 2 = RSA, 3 = contract-based verification.
_issuer address The address issuing the claim. It may be the subject or an external party.
_signature bytes The issuer's signature over keccak256(identity, topic, data).
_data bytes The underlying claim data or its hash.
_uri string The location of the claim data, such as an HTTP link or IPFS hash.
Return value
Name Type Description
claimRequestId uint256 An ID to pass to the approval function if an approval flow exists. Otherwise, it can be ignored.

Arguments

  • _topic
    • The type of claim.
  • _scheme
    • The verification method.
  • _issuer
    • The claim issuer's address.
  • _signature
    • The signature data.
  • _data
    • The claim data.
  • _uri
    • The URI of the data.

Return value

  • claimRequestId

    • A claim request ID that can be used in an approval process.

changeClaim

javascript
function changeClaim(bytes32 _claimId, uint256 _topic, uint256 _scheme, address _issuer, bytes _signature, bytes _data, string _uri) returns (bool success);

Modifies an existing claim. It updates the contents of the specified claim ID with new values and emits a ClaimChanged event after the update.

Arguments

  • _claimId
    • The ID of the claim to modify.
  • _topic
    • The new topic.
  • _scheme
    • The new verification method.
  • _issuer
    • The new issuer.
  • _signature
    • The new signature.
  • _data
    • The new claim data.
  • _uri
    • The new URI.

Return value

  • success
    • A Boolean indicating whether the modification succeeded.

removeClaim

javascript
function removeClaim(bytes32 _claimId) public returns (bool success);

Removes the specified claim. The claim issuer or claim holder can call the function to remove it. A ClaimRemoved event is emitted after removal.

Arguments

  • _claimId
    • The ID of the claim to remove.

Return value

  • success
    • A Boolean indicating whether the removal succeeded.

References

Conclusion

This article covered ERC-735, a proposal for checking externally issued KYC and identity verification information in smart contracts using a common format.

If you have any questions, feel free to send me a direct message on Twitter.

Twitter @cardene777

I also publish content on the following platforms.

https://chaldene.net/