---
eip: 7765
label: ERC-7765
title: Privileged Non-Fungible Tokens Tied To RWA
status: Draft
type: Standards Track
category: ERC
created: 2024-08-20
requires: 165, 721
official: https://eips.ethereum.org/EIPS/eip-7765
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-7765.md
canonical: https://eips.huatuo.xyz/ko/eip-7765/
lang: ko
tldr: 교환 가능한 특권을 가진 실물 자산 연동 NFT를 위한 ERC-721 확장. 특권을 온체인에서 행사하고 이미 사용되었는지 확인하는 표준 방법을 제공한다.
tags: [nft, rwa, redemption, erc721, privileges]
---

# ERC-7765: Privileged Non-Fungible Tokens Tied To RWA

> An interface extending ERC-721 representing real world assets that users can exercise privileges with NFTs.

**TL;DR:** 교환 가능한 특권을 가진 실물 자산 연동 NFT를 위한 ERC-721 확장. 특권을 온체인에서 행사하고 이미 사용되었는지 확인하는 표준 방법을 제공한다.

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

NFT는 현실 세계의 무언가에 대한 권리로 판매되는 일이 많습니다. 신발 한 켤레, 티켓, 서비스 쿠폰 같은 것들입니다. 보유자는 그 권리를 **교환(redeem)**하고 싶어 하고, 판매자는 특정 권리가 사용되었다는 온체인 기록이 있어야 같은 권리가 두 번 청구되지 않습니다.

현재는 프로젝트마다 자체 교환 로직을 만들기 때문에 지갑, 마켓플레이스, 이행(fulfilment) 서비스가 이런 토큰을 범용적으로 다룰 수 없습니다. ERC-7765는 NFT가 특권을 노출하는 방식과 보유자가 이를 행사하는 방식을 표준화합니다.

## 어떻게 동작하나요?

토큰은 일반적인 [ERC-721](/eip-721/) NFT(전송과 승인은 그대로)이며, 추가로 `IERC7765`를 구현합니다.

| 함수 / 이벤트 | 용도 |
| --- | --- |
| `getPrivilegeIds(tokenId)` | 토큰에 연결된 특권 목록 |
| `isExercisable(to, tokenId, privilegeId)` | 이 특권을 지금 `to`를 위해 행사할 수 있는가? |
| `isExercised(to, tokenId, privilegeId)` | `to`를 위해 이미 행사되었는가? |
| `exercisePrivilege(to, tokenId, privilegeId, data)` | 행사한다. `PrivilegeExercised`를 emit해야 한다 |
| `PrivilegeExercised(operator, to, tokenId, privilegeId)` | 오프체인 이행을 시작해도 된다는 신호 |

`to` 파라미터 덕분에 보유자나 호출자가 아닌 다른 사람이 특권의 혜택을 받을 수 있습니다(예: 선물). `data` 바이트는 자유 형식이며, 배송 참조 정보나 온체인에서 정산되는 특권에 쓸 수 있습니다.

선택 사항인 `IERC7765Metadata` 확장은 `privilegeURI(privilegeId)`를 추가하며, 각 특권의 `name`, `description`, `resource`가 담긴 JSON을 가리킵니다.

이 표준은 `exercisePrivilege`를 **누가** 호출할 수 있는지를 의도적으로 정하지 않습니다. 접근 제어는 각 구현에 맡겨져 있습니다.

## 샘플 코드

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

interface IERC7765 {
    event PrivilegeExercised(
        address indexed _operator,
        address indexed _to,
        uint256 indexed _tokenId,
        uint256 _privilegeId
    );

    function exercisePrivilege(address _to, uint256 _tokenId, uint256 _privilegeId, bytes calldata _data) external;
    function isExercisable(address _to, uint256 _tokenId, uint256 _privilegeId) external view returns (bool);
    function isExercised(address _to, uint256 _tokenId, uint256 _privilegeId) external view returns (bool);
    function getPrivilegeIds(uint256 _tokenId) external view returns (uint256[] memory);
}
```

교환을 지켜보는 이행 서비스 예시(ethers v6):

```ts
import { Contract, JsonRpcProvider } from "ethers";

const provider = new JsonRpcProvider(process.env.RPC_URL);
const nft = new Contract(nftAddress, [
  "event PrivilegeExercised(address indexed _operator, address indexed _to, uint256 indexed _tokenId, uint256 _privilegeId)",
], provider);

nft.on("PrivilegeExercised", (operator, to, tokenId, privilegeId) => {
  console.log(`ship privilege ${privilegeId} of token ${tokenId} for ${to}`);
});
```

## 알아둘 점

- **상태: Draft.** 인터페이스는 아직 바뀔 수 있습니다.
- 체인은 특권이 청구되었다는 사실만 기록합니다. 실물이나 서비스의 전달은 전적으로 발행자에게 달려 있으므로 구매자는 발행자의 오프체인 약속에 의존합니다.
- 구현은 토큰별, 특권별 상태를 신중하게 추적하고 `exercisePrivilege`에 명확한 접근 제어를 정의해야 합니다. 명세는 이 둘을 주된 보안 우려로 꼽습니다.
- 지원 여부는 [ERC-165](/eip-165/)의 `supportsInterface`로 알려야 합니다.


---

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