---
eip: 7574
label: ERC-7574
title: Authentication SBT using Credential
status: Draft
type: Standards Track
category: ERC
created: 2023-11-02
requires: 165, 721, 5192
official: https://eips.ethereum.org/EIPS/eip-7574
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-7574.md
canonical: https://eips.huatuo.xyz/eip-7574/
lang: en
tldr: A contract verifies a proof (for example a zero-knowledge proof) that a user holds a decentralized-identity credential, then issues a non-transferable soulbound token that other apps can check instead of handling the credential.
tags: [identity, did, soulbound, nft, privacy]
---

# ERC-7574: Authentication SBT using Credential

> Verifying a user's decentralized identifier (DID)/credential and issuing soul-bound token (SBT)

**TL;DR:** A contract verifies a proof (for example a zero-knowledge proof) that a user holds a decentralized-identity credential, then issues a non-transferable soulbound token that other apps can check instead of handling the credential.

## What problem does it solve?

On Ethereum a user is just an address. That is good for pseudonymity, but it makes it hard for an app to know whether someone is a real, verified person or holds some qualification. This leads to Sybil attacks, duplicate sign-ups and no way to gate access by credential.

W3C Decentralized Identifiers (DIDs) and verifiable credentials can express claims like "has a university degree" or "passed KYC". Putting those credentials on-chain, though, would leak personal data, and every app would need its own verification logic.

ERC-7574 standardises the *result* of verification instead. A verifier contract checks a proof that the user holds a credential (for example a zero-knowledge proof) and, if it passes, mints a non-transferable token (SBT) to the user. Other contracts only need to ask "does this address hold the SBT?".

## How it works

**Contract interface** (`IERC7574`):

| Function | Purpose |
| --- | --- |
| `verify(verificationData)` | Checks proof of credential possession. The proof system is left to the implementation. |
| `issueSBT(to, tokenURI)` | Mints the authentication token after successful verification. |
| `updateTokenURI(tokenId, tokenURI)` | Changes metadata to reflect revocation or a status change. |

The token must be an [ERC-721](/eip-721/) that is permanently locked via [ERC-5192](/eip-5192/), so it cannot be sold or lent.

**Metadata.** Standard ERC-721 metadata is extended with `Issuer` and `credentialNumber`. The credential number lets a relying party ask the issuer to confirm or audit a verification later without the token itself containing personal data.

**Revocation** is done by updating metadata rather than burning, so apps can tell "never verified" apart from "verified, later revoked".

The spec also sketches a `VerifiedPresentation` struct (user address, issuer, user name, credential number) to represent a verified result.

## Sample code

A relying contract that only allows addresses holding a valid SBT:

```solidity
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.20;

interface IERC721Balance {
    function balanceOf(address owner) external view returns (uint256);
}

contract VerifiedOnlyAirdrop {
    IERC721Balance public immutable authSBT; // an ERC-7574 token contract
    mapping(address => bool) public claimed;

    constructor(IERC721Balance sbt) { authSBT = sbt; }

    function claim() external {
        require(authSBT.balanceOf(msg.sender) > 0, "not verified");
        require(!claimed[msg.sender], "already claimed");
        claimed[msg.sender] = true;
        // ... send reward
    }
}
```

Example extended metadata (values illustrative):

```json
{
  "name": "University Degree Verified",
  "description": "Holder proved possession of a bachelor's degree credential",
  "Issuer": { "id": "did:example:university" },
  "credentialNumber": { "id": "cred-0001" }
}
```

## Things to know

- Status is **Draft**.
- Because revocation is expressed in metadata, a plain `balanceOf` check (as above) will still pass for a revoked holder. Relying apps need a way to read revocation status from the implementation they trust.
- The security of the whole scheme depends on the implementation's `verify` logic, which the spec does not define. Implementers must handle forged proofs and replays.
- Issuer and credential references can still link a user across apps; design metadata to minimise that.
- For a different take on non-transferable tokens, see [ERC-4973](/eip-4973/) account-bound tokens.


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-7574
