EIPs Explained

ERC-7929 · Draft(초안) · ERC · 2025-04-01

ERC-7929: PermaLink Asset Bound Token

다른 컨트랙트의 토큰에 영구적으로 묶이는 토큰을 위한 드래프트 NFT 표준. 소유권과 잔액은 묶인 컨트랙트에서 그대로 반영되고, 전송과 승인은 비활성화되어 둘이 항상 함께 움직인다.

어떤 문제를 해결하나요?

이더리움에서는 계정(EOA와 컨트랙트)만 자산을 소유할 수 있습니다. 현실의 많은 상황은 "자산이 자산을 소유하는" 것에 더 가까운 방식을 원합니다. 항상 신원 토큰을 따라가야 하는 자격 증명, 항상 원본 NFT와 함께 있어야 하는 부가 컬렉션, 공급망에서 제품에 속하는 부품 같은 것들입니다. 지금은 이들을 함께 두려면 각 토큰을 따로 옮기고 갈라지지 않기를 바라는 수밖에 없습니다.

ERC-7929는 **PermaLink Asset Bound Token(PermaLink-ABT)**을 도입합니다. 다른 컨트랙트의 토큰과 되돌릴 수 없게 연결된 토큰입니다. 묶인 대상 토큰을 옮기면 거기에 붙은 모든 PermaLink-ABT도 정의상 함께 옮겨집니다. 제작자는 기존 NFT 컬렉션 컨트랙트의 허락 없이도 그 위에 묶인 컬렉션을 만들 수 있습니다.

어떻게 동작하나요?

  • PermaLink-ABT 컨트랙트는 assetBoundContract(예: ERC-721 컬렉션)를 가리키도록 배포되며, AssetBoundContractSet을 발생시킵니다.
  • ABT 컨트랙트의 토큰 n은 묶인 컨트랙트의 토큰 n과 연결됩니다. 필수 읽기 함수는 묶인 컨트랙트를 그대로 반영합니다.
    • ownerOf(tokenId)는 묶인 컨트랙트에서 해당 ID의 소유자를 반환합니다.
    • tokenExists(tokenId)는 그 ID가 그쪽에 존재하는지 알려 줍니다.
    • totalSupply()와 balanceOf(owner)는 묶인 컨트랙트에서 읽습니다.
  • transfer나 approve는 없습니다. 참조 구현은 해당 ERC-721 함수들을 revert하게 해서 연결이 절대 끊기지 않도록 합니다.
  • 민팅 대신, 선택적인 IERC7929Reveal 확장이 reveal(uint256[] tokenIds)를 제공합니다. 이 함수는 미리 정해 둔 공급량에서 토큰을 활성화하고 TokenRevealed를 발생시킵니다. 저자들은 이것이 필요할 때 민팅하는 것보다 저렴하다고 주장합니다.
  • 하나의 묶인 대상 토큰은 서로 다른 컨트랙트의 PermaLink-ABT 여러 개를 가질 수 있어, 하나의 단위로 움직이는 번들을 이룹니다.

샘플 코드

인터페이스와, 묶인 토큰을 누가 제어하는지 확인하는 리더:

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

interface IERC7929 {
    event AssetBoundContractSet(address assetBoundContract);
    function ownerOf(uint256 tokenId) external view returns (address);
    function tokenExists(uint256 tokenId) external view returns (bool);
    function totalSupply() external view returns (uint256);
    function balanceOf(address owner) external view returns (uint256);
}

interface IERC7929Reveal is IERC7929 {
    event TokenRevealed(uint256 tokenId);
    function reveal(uint256[] calldata tokenIds) external payable;
}

// Minimal sketch of the mirroring logic
contract PermaLinkABT is IERC7929 {
    IERC721Like public immutable assetBoundContract;

    constructor(address bound) {
        assetBoundContract = IERC721Like(bound);
        emit AssetBoundContractSet(bound);
    }

    function ownerOf(uint256 id) external view returns (address) {
        return assetBoundContract.ownerOf(id);      // follows the bound token
    }
    function tokenExists(uint256 id) public view returns (bool) {
        try assetBoundContract.ownerOf(id) returns (address o) { return o != address(0); }
        catch { return false; }
    }
    function totalSupply() external view returns (uint256) { return assetBoundContract.totalSupply(); }
    function balanceOf(address o) external view returns (uint256) { return assetBoundContract.balanceOf(o); }
    // No transfer / approve functions: the link is permanent.
}

interface IERC721Like {
    function ownerOf(uint256) external view returns (address);
    function balanceOf(address) external view returns (uint256);
    function totalSupply() external view returns (uint256);
}

알아둘 점

  • 상태: Draft. 인터페이스는 바뀔 수 있습니다.
  • 묶인 대상 토큰에 대한 접근을 잃으면 거기에 묶인 모든 PermaLink-ABT를 잃습니다. 저자들은 가치가 큰 묶인 대상 토큰을 ERC-6809 같은 키 바인딩/2FA 방식으로 보호할 것을 권장합니다.
  • ABT는 소유권을 그대로 반영할 뿐이며, 묶인 토큰이 움직여도 자체 전송 이벤트를 발생시키지 않으므로, 인덱서와 마켓플레이스는 ABT 이벤트에 의존하지 말고 묶인 컨트랙트를 통해 소유권을 확인해야 합니다.
  • NFT가 임의의 자산을 보유하고 밖으로 전송할 수 있는 스마트 계정을 소유하는 토큰 바운드 계정(ERC-6551)과 비교해 보세요. PermaLink-ABT는 반대로 고정되어 있고, 일대일이며, 분리할 수 없습니다.

#nft #erc-721 #composability #binding #rwa

상세 정보

저자
Mihai Onila (@MihaiORO), Nick Zeman (@NickZCZ), Narcis Cotaie (@NarcisCRO)
상태
Draft(초안)
유형
Standards Track / ERC
작성일
2025-04-01
의존하는 제안

기계 판독용 데이터: Markdown · JSON