EIPs Explained

ERC-5554 · Stagnant · ERC · 2022-07-07

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

A draft-stage interface for attaching licence terms to NFTs and logging on-chain who reproduced, remixed or commercially used a work, building on ERC-5218 licences.

What problem does it solve?

Buying an NFT of an artwork usually does not transfer the copyright in that work. The NFT often only references the file by hash, and what the holder may actually do with it (print merchandise, remix it, reproduce it) is frequently unclear or written somewhere off-chain.

ERC-5554 tries to make those rights explicit and machine-readable. The idea is licences with modular terms, in the spirit of Creative Commons, that are granted to whoever currently holds the NFT and move automatically with each transfer. Alongside that, it proposes an on-chain record of derivative works, reproductions and commercial uses, so anyone can see which uses were logged by a licensed holder and when.

How it works

The interface extends ERC-5218 (NFT rights management), which provides the licence objects: creating licences, pointing to their legal text by URI, and checking whether they are active.

On top of that, ERC-5554 adds:

  • Copyright owner. getCopyrightOwner(tokenId) returns the address holding the copyright. This may be the token holder, the artist, or a multisig/DAO.
  • On-chain derivatives and reproductions. logDerivative(tokenId, derivative, derivativeTokenId) and logReproduction(...) record that a new NFT (contract plus token ID) was created under a licence and return a tracking ID. Implementations should revert if the caller lacks a valid licence. Getters map each ID back to the source token, the licence used and the new collection.
  • Off-chain commercial use. logCommercialExploitation(tokenId, uri) emits CommercialExploitation with a link describing the use, for example a merchandise run.
  • Events DerivativeCreated, ReproductionCreated and CommercialExploitation let indexers build an attribution graph.

Immutable facts such as the artist and the parent works of a derivative are expected to live in the token metadata rather than in contract storage.

Sample code

Holder records a remix and later looks up its provenance (ethers v6, using the function names from the spec's interface):

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

Things to know

  • Status is Stagnant. The authors describe the legal text and technical spec as work in progress, and the Security Considerations section just says "Needs discussion".
  • The spec is internally inconsistent: the interface uses getCopyrightOwner while a later section says copyrightOwner, the CommercialExploitation event has different parameters in two places, and the examples call a requestDerivativeToken() function that the interface does not define. Expect implementations to diverge.
  • An on-chain log is a record, not legal enforcement. Whether a licence is valid or enforceable depends on its legal text and jurisdiction; get legal review before relying on it.
  • It depends on ERC-5218, which is also Stagnant.

#nft #licensing #copyright #remix #attribution

Details

Authors
Isaac Patka (@ipatka), COALA Licensing Taskforce <[email protected]>
Status
Stagnant
Type
Standards Track / ERC
Created
2022-07-07
Requires

Machine-readable: Markdown · JSON