---
eip: 5554
label: ERC-5554
title: NFT Legal Use, Repurposing, and Remixing
status: Stagnant
type: Standards Track
category: ERC
created: 2022-07-07
requires: 5218
official: https://eips.ethereum.org/EIPS/eip-5554
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-5554.md
canonical: https://eips.huatuo.xyz/zh/eip-5554/
lang: zh
tldr: 一个处于草案阶段的接口，用于为 NFT 附加许可条款，并在链上记录谁复制、再创作或商业使用了某件作品，建立在 ERC-5218 许可之上。
tags: [nft, licensing, copyright, remix, attribution]
---

# ERC-5554: NFT Legal Use, Repurposing, and Remixing

> An interface for describing and enforcing the legal use and remix of an NFT. On-chain registry of rights, attribution and derivative links.

**TL;DR:** 一个处于草案阶段的接口，用于为 NFT 附加许可条款，并在链上记录谁复制、再创作或商业使用了某件作品，建立在 ERC-5218 许可之上。

## 它解决什么问题？

购买某件艺术作品的 NFT，通常并不会转移该作品的版权。NFT 往往只是通过哈希引用文件，而持有者实际上可以用它做什么（印制周边、再创作、复制）常常并不明确，或者写在链下的某个地方。

ERC-5554 试图让这些权利变得明确且机器可读。其思路是采用具有模块化条款的许可（类似知识共享 Creative Commons 的精神），授予*当前持有该 NFT 的人*，并随着每次转移自动转移。除此之外，它还提出了衍生作品、复制品和商业使用的链上记录，让任何人都能看到哪些使用是由被许可的持有者在何时记录的。

## 它如何运作

该接口扩展了 [ERC-5218](/eip-5218/)（NFT 权利管理），后者提供许可对象：创建许可、通过 URI 指向其法律文本，以及检查其是否有效。

在此基础上，ERC-5554 增加了：

- **版权所有者。** `getCopyrightOwner(tokenId)` 返回持有版权的地址。它可以是代币持有者、艺术家，或者多签／DAO。
- **链上衍生品和复制品。** `logDerivative(tokenId, derivative, derivativeTokenId)` 和 `logReproduction(...)` 记录某个新 NFT（合约加代币 ID）是在某项许可下创建的，并返回一个追踪 ID。如果调用者没有有效的许可，实现应当 revert。getter 函数把每个 ID 映射回源代币、所用许可以及新集合。
- **链下商业使用。** `logCommercialExploitation(tokenId, uri)` 会 emit `CommercialExploitation`，并附带描述该使用的链接，例如一批周边商品。
- **事件** `DerivativeCreated`、`ReproductionCreated` 和 `CommercialExploitation` 让索引器可以构建署名关系图。

艺术家以及衍生作品的母作品等不可变事实，预期保存在代币元数据中，而不是合约存储中。

## 示例代码

持有者记录一次再创作，之后查询其出处（ethers v6，使用规范接口中的函数名）：

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

const abi = [
  "function logDerivative(uint256 tokenId, address derivative, uint256 derivativeTokenId) returns (uint256)",
  "function getDerivativeTokenId(uint256 derivativeId) view returns (uint256)",
  "function getDerivativeLicenseId(uint256 derivativeId) view returns (uint256)",
  "function getDerivativeCollection(uint256 derivativeId) view returns (address)",
  "event DerivativeCreated(uint256 _tokenId, uint256 _licenseId, uint256 _derivativeId, address _derivative, uint256 _derivativeTokenId)",
];
const original = new Contract(originalCollection, abi, holderSigner);

// Reverts unless the caller holds a licence that allows derivatives
const receipt = await (await original.logDerivative(7n, remixCollection, 1n)).wait();
const ev = receipt!.logs.map((l) => original.interface.parseLog(l)).find((e) => e?.name === "DerivativeCreated");
const derivativeId = ev!.args._derivativeId;

console.log(await original.getDerivativeTokenId(derivativeId));   // 7n
console.log(await original.getDerivativeCollection(derivativeId)); // remixCollection
```

## 需要注意

- 状态为 **Stagnant**。作者称法律文本和技术规范仍在进行中，而 Security Considerations 一节只写着"Needs discussion"。
- 该规范内部不一致：接口使用 `getCopyrightOwner`，而后面的章节写作 `copyrightOwner`，`CommercialExploitation` 事件在两处的参数不同，示例调用了接口中并未定义的 `requestDerivativeToken()` 函数。预计各实现会出现分歧。
- 链上日志是一种记录，而不是法律强制力。许可是否有效、能否强制执行，取决于其法律文本和司法辖区；在依赖它之前请先进行法律审阅。
- 它依赖于同样处于 Stagnant 状态的 [ERC-5218](/eip-5218/)。


---

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