---
eip: 5484
label: ERC-5484
title: Consensual Soulbound Tokens
status: Final
type: Standards Track
category: ERC
created: 2022-08-17
requires: 165, 721
official: https://eips.ethereum.org/EIPS/eip-5484
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-5484.md
canonical: https://eips.huatuo.xyz/ko/eip-5484/
lang: ko
tldr: 양도 불가능한 ERC-721 토큰. 발행자와 수령자가 각 토큰을 누가 소각할 수 있는지 사전에 합의하며, 그 규칙은 발행 시점에 영구히 고정된다.
tags: [soulbound, sbt, nft, erc-721, credentials]
---

# ERC-5484: Consensual Soulbound Tokens

> Interface for special NFTs with immutable ownership and pre-determined immutable burn authorization

**TL;DR:** 양도 불가능한 ERC-721 토큰. 발행자와 수령자가 각 토큰을 누가 소각할 수 있는지 사전에 합의하며, 그 규칙은 발행 시점에 영구히 고정된다.

## 어떤 문제를 해결하나요?

"소울바운드" 토큰(SBT)은 양도할 수 없는 NFT입니다. 자격 증명, 멤버십, 하나의 계정에 묶인 대출이나 신용 기록 등이 그 예입니다. 초기 구현은 저마다 방식이 달랐고, 대개 모든 전송을 revert시켰기 때문에 도구가 SBT와 고장 난 NFT를 깔끔하게 구분할 수 없었습니다. 또 이런 토큰에서 핵심이 되는 질문, 즉 누가 토큰을 파기할 수 있는가에 대해서도 의견이 갈렸습니다.

ERC-5484는 SBT를 일반 [ERC-721](/eip-721/) 토큰에 두 가지를 더한 것으로 표준화합니다. 토큰별 명시적 **소각 권한**과 소울바운드 발행을 표시하는 `Issued` 이벤트입니다. 토큰이 존재하기 전에 양쪽 당사자가 소각 규칙에 동의합니다.

## 어떻게 동작하나요?

- 토큰은 [ERC-165](/eip-165/)와 ERC-721에 더해 `IERC5484`(인터페이스 ID `0x0489b56f`)를 구현합니다.
- 각 토큰은 `BurnAuth`를 가지며 `burnAuth(tokenId)`로 읽을 수 있습니다.

| 값 | 소각할 수 있는 주체 | 사양의 사용 예 |
| --- | --- | --- |
| `IssuerOnly` (0) | 발행자 | 대출 기록 |
| `OwnerOnly` (1) | 보유자 | 유료 멤버십 |
| `Both` (2) | 둘 중 누구든 | 자격 증명 |
| `Neither` (3) | 아무도 못 함 | 신용 이력 |

- `burnAuth`는 수령자에게 보여줘야 하며, 발행자는 발행 **전에** 메타데이터를 제시하고 수령자의 서명을 받아야 합니다. 발행 후에는 `burnAuth`와 메타데이터 모두 변경할 수 없습니다.
- 발행(mint) 시 컨트랙트는 일반적인 ERC-721 `Transfer`와 함께 `Issued(from, to, tokenId, burnAuth)`를 발생시키므로, 인덱서는 NFT 도구를 깨뜨리지 않고도 SBT 발행을 인식할 수 있습니다.
- 전송은 여전히 revert되지만, 연동하는 쪽은 실패해서 알게 되는 대신 먼저 `supportsInterface(0x0489b56f)`를 확인할 수 있습니다.

## 샘플 코드

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

import {ERC721} from "@openzeppelin/contracts/token/ERC721/ERC721.sol";

interface IERC5484 {
    enum BurnAuth { IssuerOnly, OwnerOnly, Both, Neither }
    event Issued(address indexed from, address indexed to, uint256 indexed tokenId, BurnAuth burnAuth);
    function burnAuth(uint256 tokenId) external view returns (BurnAuth);
}

contract Credential is ERC721, IERC5484 {
    address public immutable issuer;
    mapping(uint256 => BurnAuth) private _auth;

    constructor() ERC721("Credential", "CRED") { issuer = msg.sender; }

    // Receiver consent (signature over metadata + burnAuth) is checked offchain or here; omitted.
    function issue(address to, uint256 id, BurnAuth auth) external {
        require(msg.sender == issuer, "issuer only");
        _auth[id] = auth;
        _safeMint(to, id);
        emit Issued(msg.sender, to, id, auth);
    }

    function burnAuth(uint256 id) external view returns (BurnAuth) {
        _requireOwned(id);
        return _auth[id];
    }

    function burn(uint256 id) external {
        BurnAuth a = _auth[id];
        bool ok = (msg.sender == issuer && (a == BurnAuth.IssuerOnly || a == BurnAuth.Both))
               || (msg.sender == ownerOf(id) && (a == BurnAuth.OwnerOnly || a == BurnAuth.Both));
        require(ok, "not authorized");
        _burn(id);
    }

    // Block every transfer except mint and burn.
    function _update(address to, uint256 id, address auth) internal override returns (address from) {
        from = _ownerOf(id);
        require(from == address(0) || to == address(0), "soulbound");
        return super._update(to, id, auth);
    }

    function supportsInterface(bytes4 iid) public view override returns (bool) {
        return iid == type(IERC5484).interfaceId || super.supportsInterface(iid);
    }
}
```

## 알아둘 점

- 상태: **Final**.
- 사양은 발행 전에 수령자의 서명을 요구하지만 그 형식은 정의하지 않습니다. 구현자가 선택합니다(EIP-712 타입 메시지가 자연스러운 선택입니다).
- 근거 설명 글은 두 번째 옵션을 `ReceiverOnly`라고 부르지만 인터페이스에서는 `OwnerOnly`로 명명되어 있습니다. 중요한 것은 인터페이스의 enum입니다.
- 소각은 키 교체로 가는 길입니다. 권한이 있는 쪽이 이전 토큰을 소각하고, 발행자가 새 주소로 다시 발행합니다.
- 대안: [ERC-5192](/eip-5192/)(최소한의 `locked()` 신호), [ERC-6239](/eip-6239/)(시맨틱 SBT), [ERC-4973](/eip-4973/)(계정 바운드 토큰, Review 상태).


---

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