Introduction

Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.

I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.

I also build and publish a variety of tools, libraries, and open-source projects.

ERC-7548 proposes a mechanism that allows users to remix existing NFTs and create new NFT derivatives.

This article explains the proposal with additional context and examples.

You can find my other EIP articles here.

Overview

The proposal aims to establish a standardized, decentralized way to combine existing intellectual property (IP) into new works. The protocol is built around non-fungible tokens (NFTs), with each IP asset represented by an NFT. Its central idea is to extend ERC-721 so that users can combine, or remix, multiple existing NFTs to create a new NFT.

For more on ERC-721, see the following article.

https://chaldene.net/erc721

To make the process transparent and traceable, relationships between new NFTs and their source NFTs are recorded on-chain and made publicly accessible. Anyone can inspect which NFTs were combined and trace the origins of the resulting NFT.

To make IP more liquid, users can remix NFTs they own and authorize other users to create new NFTs using their assets. This opens up more opportunities for creative collaboration, new ideas, and artistic works.

The proposal provides rules and infrastructure for creating original derivatives from existing digital assets. By recording the relationships involved in the creative process transparently on-chain, it aims to enable new forms of creative collaboration. The legal rights associated with an NFT still depend on the applicable license or agreement.

Motivation

New content appears on the internet every day, but traditional intellectual property infrastructure can make registering and licensing IP burdensome for digital creators. The speed at which content is created exposes delays in registration, leaving many works without the protection their creators seek. Consequently, creators may struggle to obtain fair compensation when their work circulates.

The proposal is motivated by the goal of building an open IP ecosystem specifically for today's digital creators. It envisions creators registering, licensing, and monetizing their content globally with a few clicks, without geographic or language barriers.

The following table compares traditional IP infrastructure with the proposed open IP infrastructure.

Aspect Traditional IP infrastructure Open IP infrastructure
IP registration Long waiting periods, extensive paperwork, and cumbersome communication. NFTs represent intellectual property, with the associated IP rights assigned to their owners under the applicable legal arrangements.
IP licensing Lengthy negotiations, legal terminology, and case-by-case agreements. A one-stop global IP licensing marketplace supporting a range of licensing agreements.

The proposed ecosystem aims to help creators overcome complex procedures and geographic constraints, making it easier to protect their work and pursue revenue opportunities worldwide. Recording an NFT does not by itself establish legal ownership or copyright protection.

Specification

Interfaces

The protocol standardizes the process of remixing multiple existing NFTs to create a derivative NFT, called a combo. It makes relationships between the newly created NFT and its source NFTs traceable on-chain.

The protocol consists of three core modules: the remix module, the network module, and the license module.

Remix module

This module manages the process of combining multiple NFTs to create a new derivative. Users select the source NFTs, decide how to combine them, and generate the derivative.

Network module

The network module records and tracks relationships between derivative NFTs and their source NFTs on-chain. It makes these relationships transparent so that anyone can trace the origins of a derivative.

License module

This module manages licensing terms governing the use of derivative NFT works. It establishes rules concerning how a new derivative may be used and under what conditions others may receive permission to use it.

The protocol facilitates the creation of digital art by remixing NFTs, makes the relationships involved transparently traceable, and provides mechanisms for defining rules governing use of the works. Creators can thereby express themselves more freely while managing the rights associated with their creations.

Remix module

The remix module extends ERC-721 to support the creation of a new NFT by remixing multiple existing NFTs, which can be ERC-721 or ERC-1155 tokens.

For more on ERC-1155, see the following article.

https://chaldene.net/erc1155

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

interface IERC721X {
    // Events

    /// @dev Emits when a combo is minted.
    /// @param owner The owner address of the newly minted combo
    /// @param comboId The newly minted combo identifier
    event ComboMinted(address indexed owner, uint256 indexed comboId);

    // Structs

    /// @param tokenAddress The NFT's collection address
    /// @param tokenId The NFT identifier
    struct Token {
        address tokenAddress;
        uint256 tokenId;
    }

    /// @param amount The number of NFTs used
    /// @param licenseId Which license to be used to verify this component
    struct Component {
        Token token;
        uint256 amount;
        uint256 licenseId;
    }

    // Functions

    /// @dev Mints a NFT by remixing multiple existing NFTs.
    /// @param components The NFTs remixed to mint a combo
    /// @param hash The hash representing the algorithm about how to generate the combo's metadata when remixing multiple existing NFTs.
    function mint(
        Component[] calldata components,
        string calldata hash
    ) external;

    /// @dev Retrieve a combo's components.
    function getComponents(
        uint256 comboId
    ) external view returns (Component[] memory);
}

ComboMinted

javascript
event ComboMinted(address indexed owner, uint256 indexed comboId);

Overview

An event emitted when a combo is minted.

Details

The event is recorded on-chain when a new combo NFT is created. It publicly identifies the owner of the new combo and its unique identifier, making the mint traceable.

Parameters

  • owner
    • Address of the owner of the newly minted combo.
  • comboId
    • Identifier of the newly minted combo.

Token

javascript
struct Token {
    address tokenAddress;
    uint256 tokenId;
}

Overview

A struct representing an NFT.

Details

The struct identifies a particular NFT. It stores the address of the NFT collection and the identifier of a particular token within that collection.

Parameters

  • tokenAddress
    • Address of the NFT collection.
  • tokenId
    • Identifier of the NFT.

Component

javascript
struct Component {
    Token token;
    uint256 amount;
    uint256 licenseId;
}

Overview

A struct representing a component of a combo.

Details

The struct holds information about each NFT used to create a combo and the applicable license. It includes the quantity of the NFT used by the component and the identifier of the license governing its use.

Parameters

  • token
    • A Token struct containing information about the NFT being used.
  • amount
    • Quantity of the NFT used.
  • licenseId
    • Identifier of the license used to verify permission to use this component.

mint

javascript
function mint(
    Component[] calldata components,
    string calldata hash
) external;

Overview

Mints a new NFT by remixing multiple existing NFTs.

Details

The function combines the specified NFTs (components) to create a new combo NFT. The hash parameter represents the algorithm used to generate the combo's metadata. Through this process, users can create new, unique derivatives from existing NFTs.

Parameters

  • components
    • Array of NFTs to be remixed into the combo being minted.
    • Each component is represented by a Component struct.
  • hash
    • Hash string representing the algorithm used to generate the combo's metadata.

getComponents

javascript
function getComponents(
    uint256 comboId
) external view returns (Component[] memory);

Overview

Retrieves the components of a particular combo.

Details

Given the identifier of a combo NFT (comboId), the function returns the components used to create it. Users can inspect which NFTs form the combo and how they are represented among its components.

Parameters

  • comboId
    • Identifier of the combo NFT whose components are being retrieved.

Return value

  • Component[] memory
    • Array of Component structs that make up the specified combo NFT.

License module

By default, users can create derivative NFTs by combining multiple NFTs they own. The license module extends this capability by allowing NFT owners to authorize other people to use their NFTs in the remix process.

Normally, remixing an NFT into a derivative requires ownership of that NFT. With this module, owners can grant other creators the right to use specified NFTs. Creators can then produce more complex and distinctive derivatives that incorporate other people's NFTs, broadening the ways in which NFTs can be used.

The license module allows NFT owners to authorize others to use their NFTs in remixes, supporting more collaborative creation of derivative works.

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

import "./IERC721X.sol";

interface ILicense {
    /// @dev Verify the permission when minting a combo
    /// @param user The minter
    /// @param combo The new NFT to be minted by remixing multiple existing NFTs
    /// @return components The multiple existing NFTs used to mint the new combo
    function verify(
        address user,
        IERC721X.Token calldata combo,
        IERC721X.Component[] calldata components
    ) external returns (bool);
}

verify

javascript
function verify(
    address user,
    IERC721X.Token calldata combo,
    IERC721X.Component[] calldata components
) external returns (bool);

Overview

Verifies authorization to mint a combo.

Details

When multiple existing NFTs are remixed to mint a new combo, this function verifies whether the user has permission to perform the operation. If the required authorization is established, the new combo may be created.

Parameters

  • user
    • Address of the user attempting to mint the combo.
  • combo
    • An IERC721X.Token struct containing information about the new NFT being minted through the remix.
  • components
    • An array of IERC721X.Component structs describing the existing NFTs used to mint the new combo.

Return value

  • bool
    • Returns true if authorization is verified and minting is permitted, or false otherwise.

Network module

The network module follows the singleton pattern and is used to track relationships between source NFTs and their derivatives.

The singleton pattern is a software design pattern in which a class has only one instance within the relevant application. The network module adopts this principle to provide a common registry.

The module manages and tracks relationships between existing NFTs and newly created derivatives, including combo NFTs. Using a shared instance allows relationships to be managed consistently in one place while avoiding duplicated registries. Users can inspect relationships between NFTs and trace the origins and components of derivative works.

As NFT reuse and derivative creation become more common, this module can clarify the relationships between original and new works and facilitate copyright and license management. This capability is particularly useful in fields such as digital art and in-game items.

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

import "./IERC721X.sol";

interface INFTNetIndexer {
    /// @dev Verify if the `child` was created by remixing the `parent` with other NFTs.
    /// @param parent Any NFT
    /// @param child Any NFT
    function isParent(
        IERC721X.Token calldata parent,
        IERC721X.Token calldata child
    ) external view returns (bool);

    /// @dev Verify if `a` and `b` have common `parent`s
    /// @param a Any NFT
    /// @param b Any NFT
    function isSibling(
        IERC721X.Token calldata a,
        IERC721X.Token calldata b
    ) external view returns (bool, IERC721X.Token[] memory commonParents);

    /// @dev Return all parents of a `token`
    /// @param token Any NFT
    /// @return parents All NFTs used to mint the `token`
    function getParents(
        IERC721X.Token calldata token
    ) external view returns (IERC721X.Token[] memory parents);
}

isParent

javascript
function isParent(
    IERC721X.Token calldata parent,
    IERC721X.Token calldata child
) external view returns (bool);

Overview

Checks whether child was created by remixing parent with other NFTs.

Details

The function determines whether the specified child NFT was created using the specified parent NFT as a component. This allows users to verify the recorded derivative relationship.

Parameters

  • parent
    • NFT being checked as a parent.
  • child
    • NFT being checked as a child.

Return value

  • bool
    • Returns true if child is derived from parent according to the recorded relationship, or false otherwise.

isSibling

javascript
function isSibling(
    IERC721X.Token calldata a,
    IERC721X.Token calldata b
) external view returns (bool, IERC721X.Token[] memory commonParents);

Overview

Checks whether two NFTs share a parent.

Details

The function determines whether two NFTs have any parent NFTs in common and returns those common parents. This allows users to identify relationships between different NFTs.

Parameters

  • a
    • First NFT to check.
  • b
    • Second NFT to check.

Return values

  • bool
    • Returns true if the two NFTs share a parent, or false otherwise.
  • IERC721X.Token[] memory commonParents
    • Array of shared parent NFTs.

getParents

javascript
function getParents(
    IERC721X.Token calldata token
) external view returns (IERC721X.Token[] memory parents);

Overview

Returns all recorded parent NFTs of the specified token.

Details

The function returns the parent NFTs used to create the specified NFT through remixing. Users can identify the NFTs from which the derivative was created.

Parameters

  • token
    • NFT whose parents are being retrieved.

Return value

  • IERC721X.Token[] memory parents
    • Array of the specified NFT's parent NFTs.

Additional considerations

The Open IP Protocol is built around one assumption, two extensions, and one constant.

One assumption: Within the proposed open IP ecosystem, each IP asset is represented by an NFT. The model assumes that ownership of the NFT corresponds to ownership of the associated IP. That correspondence must be established by applicable legal rights and agreements; it is not an automatic property of NFT ownership. This assumption explains why the Open IP Protocol is designed as a backward-compatible extension to ERC-721.

Two extensions: IP licensing and remixing are intended to support a variety of implementations.

There are many ways to license IP. Delegating use of an NFT to someone else may be one licensing model. Charging for a specified number of usage rights is another. Additional models can establish prices through auctions, automated market makers (AMMs), or other pricing mechanisms. The license module is therefore designed to support custom licensing methods.

IP remix rules also vary. When multiple existing NFTs are remixed, there is no single rule governing whether ERC-1155 must be supported, whether the eligible NFT selection is restricted, or whether the source NFTs are consumed during remixing. The remix module is designed to support custom remix rules.

One constant: The protocol aims to keep IP licensing provenance publicly accessible and immutable. Regardless of how users license or remix IP, the recorded relationships between the source and derivative IP remain consistent.

Recording these relationships in a common registry could create an extensive IP network. If social or gaming DApps use that network, they could offer new types of user experiences. For this reason, the network module is designed as a singleton.

The protocol provides a way to manage IP through NFTs, support new licensing models and creative derivatives, and track their relationships and transactions transparently through on-chain records. Creators and users can manage their IP more flexibly and develop new uses for it.

Compatibility

The proposal is intended to be fully backward compatible with ERC-721. It extends the standard with new functionality without changing its core interface and behavior.

ERC-721 is a standard for representing unique digital assets on a blockchain. The proposal retains its basic functionality while adding capabilities for a broader range of applications.

Existing ERC-721 applications and services should continue to work with the standard ERC-721 functionality of a compliant implementation. They would need to integrate the new interfaces to use the additional features.

Those features may include more flexible licensing options and NFT remixing. Creators and users can thereby manage and use digital assets in new ways.

The goal is to preserve the existing ERC-721 ecosystem while extending its capabilities.

Security

Ownership and authorization

Only an NFT owner or a party authorized by the owner should be permitted to remix that NFT into a derivative. Strict access control is important to prevent unauthorized creation. The implementation must verify the relevant ownership and permission conditions so that only authorized users can remix NFTs.

Reentrancy risks

Creating derivatives may require interaction with several external contracts, including remix, license, and network modules. These interactions can introduce reentrancy risks.

A reentrancy attack can occur when a malicious external contract calls back into the original function during an interaction, before the original operation has safely completed. Implementations therefore need appropriate protections against reentrancy.

Gas consumption

NFT remixing may involve significant computation and interactions among multiple contracts, leading to high gas costs. Optimizing these processes helps limit costs and maintain usability.

High gas fees can be a substantial barrier for users, so efficient code and strategies for reducing gas consumption are important.

Addressing these security and efficiency concerns is essential to operating an Open IP Protocol safely and providing users with reliable services.

Citation

Combo combo@1combo.io, Saitama (@saitama2009), CT29 CT29@1combo.io, Luigi luigi@1combo.io, "ERC-7548: Open IP Protocol built on NFTs [DRAFT]," Ethereum Improvement Proposals, no. 7548, October 2023. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-7548.

Conclusion

ERC-7548 proposes a mechanism that allows users to remix existing NFTs and create new derivative NFTs, with traceable relationships to the original works.