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-5375 proposes a way to include claims of NFT authorship and proof of an author's consent in NFT metadata.

This article translates, summarizes, and expands on the following proposal.

Overview

This Ethereum Improvement Proposal concerns NFTs. NFTs are unique, non-fungible tokens used for digital art, collectibles, and other applications.

The proposal provides a way to handle information about the creator, or author, of an NFT. Note that this information is stored off-chain, separately from on-chain transactions and data.

The proposal uses JSON to structure author information. It adds a new metadata field for author information, such as names and addresses. A particularly important element is proof of author consent. It demonstrates that someone consented to being identified as an author of the NFT, not that they are necessarily its actual author. Someone who is not the actual author can therefore also provide consent.

Historically, there has been no widely established way to handle NFT author information, which has caused problems. For example, the person who mints an NFT is not necessarily its author. This proposal establishes a standard that allows the minter to identify the authors while helping prevent unauthorized attribution of authorship.

The proposal provides a structured way to identify NFT authors and express authorship claims fairly.

Motivation

A non-fungible token (NFT) represents a unique, non-interchangeable digital item. Information about who created that item, its author, is important. However, the absence of a common way to identify NFT authors has led to several problems.

Existing approaches include the following.

Using mint tx.origin or msg.sender

This approach treats the entity that mints the NFT as its author. The author and the minter, however, are not always the same. For example, a contract may mint the NFT, or several people may be involved.

Using the first Transfer event for a particular token ID

This approach treats the first owner of a given NFT as its author. However, someone who controls the contract or minting process can attribute authorship to another person without their consent, so the claim is not necessarily accurate. It is also difficult to account for multiple authors.

Using custom methods or custom JSON fields

Different NFT platforms use their own data fields to provide author information. These approaches lack consistency, complicate the handling of author information, and may lead to inaccurate claims.

The new proposal addresses these problems. It adds a dedicated field for NFT author information to make that information more reliable. Including proof of consent also helps prevent attribution without the claimed author's permission.

The goal is to establish a common standard for identifying NFT authors and expressing authorship claims fairly. This should make it possible to provide appropriate information even when the minter and author are different or when multiple authors are involved.

Specification

The standard defines concepts such as NFT authorship and minting, and provides a way to handle author information.

Definitions

  • Authors
    • The creators of the NFT.
  • Minter
    • The entity that submits the transaction that creates the NFT.
    • The minter and the author may or may not be the same entity.
  • Verifier
    • An entity that wants to verify the NFT's author information.
    • Examples include users and NFT marketplaces.
  • Author Consent Proof (ACP)
    • A signed message demonstrating that the signer consents to being identified as an author of the NFT.

Support for author information

The standard introduces a new JSON field, authorInfo. This field provides the required interface for authorship claims and an optional interface for author consent proofs.

The requirements are as follows.

  • authorInfo is a top-level field in the NFT metadata.
  • For contracts supporting the EIP-721 metadata extension, the JSON document identified by tokenURI(uint256 _tokenId) must include a top-level authorInfo field.
  • For contracts supporting the EIP-1155 metadata extension, the JSON document identified by uri(uint256 _id) must include a top-level authorInfo field.

The JSON schema for authorInfo, ERC5375AuthorInfoSchema, is defined as follows.

json
{
    "type": "object",
    "properties": {
        "consentInfo": {
            "type": "object",
            "description": "Auxiliary fields for consent verification",
            "properties": {
                "chainId": {
                    "type": "integer",
                    "description": "EIP-155 chain ID"
                },
                "id": {
                    "type": "string",
                    "description": "NFT ID"
                },
                "contractAddress": {
                    "type": "string",
                    "description": "0x-prefixed smart contract address"
                }
            }
        },
        "authors": {
            "type": "array",
            "items": "ERC5375AuthorSchema"
        }
    },
    "required": ["authors"]
}

This schema defines the data format within authorInfo. The consentInfo field contains information needed to verify consent, while authors stores author information in an array.

The new standard provides a framework for organizing NFT author information and expressing authorship claims in a consistent, verifiable manner.

Note

  • authors may be an empty array.
  • In other words, author information may be absent.

Definition of ERC5375AuthorSchema

This schema defines the format for NFT author information. Its definition is as follows.

json
{
    "type": "object",
    "properties": {
        "address": {
            "type": "string",
            "description": "0x-prefixed author address"
        },
        "consent": {
            "type": "ERC5375AuthorConsentSchema",
            "description": "Author consent information"
        }
    },
    "required": ["address"]
}

The address field identifies the NFT author's address. If the consent field is present, it contains information about the author's consent.

If consent is present, the top-level authorInfo field must also contain consentInfo. This requirement ensures that the information needed to communicate author consent is available.

The schema makes it possible to organize NFT author information and manage the information to which the author has consented.

The consent schema is defined in more detail below.

Definition of ERC5375AuthorConsentSchema:

This schema defines the format for author consent information. Its definition is as follows.

json
{
    "type": "object",
    "properties": {
        "consentData": {
            "type": "object",
            "properties": {
                "version": {
                    "type": "string",
                    "description": "NFT author consent schema version"
                },
                "issuer": {
                    "type": "string",
                    "description": "0x-prefixed author address"
                },
                "metadataFields": {
                    "type": "object"
                }
            },
            "required": ["version", "issuer", "metadataFields"]
        },
        "publicKey": {
            "type": "string",
            "description": "Author EVM public key"
        },
        "signature": {
            "type": "string",
            "description": "EIP-712 signature of the consent message"
        }
    },
    "required": ["consentData", "publicKey", "signature"]
}

Here, metadataFields is an object containing the top-level JSON fields, excluding authorInfo, that the author authenticates. The keys in metadataFields may represent a subset of the available fields, including an empty subset.

consentData may support additional fields defined by other EIPs. However, it must contain all information needed to verify the validity of the author consent proof that is not already present in other fields.

The schema defines author consent in detail and provides a way to verify its validity. This makes it possible to reliably manage information to which an author has actually consented.

An author provides consent by signing a message that conforms to EIP-712. The message structure is defined as follows.

solidity
struct Author {
    address subject;
    uint256 tokenId;
    string metadata;
}

Here, subject is the NFT contract address, tokenId is the NFT ID, and metadata is the JSON encoding of the fields listed in metadataFields.

  • It must contain exactly the same fields, in the same order as they appear in metadataFields.
  • All non-ASCII characters must be escaped.
    • Any hexadecimal letters in the escape sequences must be uppercase.
  • Whitespace that is not part of a field name or value is not allowed.

For example, suppose the top-level JSON fields are as follows.

json
{
    "name": "The Holy Hand Grenade of Antioch",
    "description": "Throw in the general direction of your favorite rabbit, et voilà",
    "damage": 500,
    "authors": [...],
    ...
}

If metadataFields is ["name", "description"], metadata contains the following.

json
{
    "name": "The Holy Hand Grenade of Antioch",
    "description": "Throw in the general direction of your favorite rabbit, et voil\u00E0"
}

Like consentData, the consent structure may support additional fields defined by other EIPs.

The domain separator has the following structure.

solidity
struct EIP712Domain {
    string name;
    string version;
    uint256 chainId;
}

What is a domain separator?

A domain separator is a concept used by EIP-712 when verifying message signatures. It identifies the domain, typically a particular protocol or contract, associated with the message and helps make signature verification more robust.

Role of the domain separator

The domain separator specifies the context in which a message is signed. Taking the associated contract or protocol into account, in addition to the message contents, makes it harder to misuse signatures.

Structure of the domain separator

The domain separator has the following structure.

solidity
struct EIP712Domain {
    string name;
    string version;
    uint256 chainId;
}
  • name
    • The name of the domain (the contract or protocol).
  • version
    • The domain version.
  • chainId
    • The EIP-155 chain ID.

Example

When verifying a signature on a message used in a particular NFT project, for example, the domain separator provides project-specific context through the project's name, version, and chain ID. This makes it harder to reuse the signature in other projects or contracts.

The domain separator is an important part of secure message signature verification because it explicitly identifies the domain to which a message belongs.

Here, name and version are the same fields described in consentData. This structure may likewise support additional fields defined by other EIPs.

Together, these structures provide a way to sign and verify author consent.

Author consent is verified individually for each author using EIP-712. Given a JSON document D1, a consent proof is valid only if all of the following conditions are satisfied.

  1. D1 contains a top-level authorInfo field conforming to ERC5375AuthorInfoSchema.
  2. Consent is present and conforms to ERC5375AuthorConsentSchema.
  3. If calling tokenURI for EIP-721, or uri for EIP-1155, returns the URI of a JSON document D2, all top-level fields listed in metadataFields are present in D2 and have the same values.
  4. The EIP-712 signature in signature, calculated using the fields specified in the JSON document, is valid.

Here is a more concrete explanation of each condition.

1. A top-level authorInfo field conforming to ERC5375AuthorInfoSchema must be present.

This condition requires the NFT metadata to contain an authorInfo field. For example, consider the following NFT metadata.

json
{
    "name": "My NFT",
    "description": "This is an example NFT",
    "authorInfo": {
        // Contents of authorInfo go here
    },
    // Other fields go here
}

2. Consent must be present and conform to ERC5375AuthorConsentSchema.

Each author's consent information within authorInfo must conform to ERC5375AuthorConsentSchema. This schema contains information about the author's consent.

json
"authors": [
    {
        "address": "0x123...",
        "consent": {
            // Consent information goes here
        }
    },
    // Additional authors follow the same structure
]

3. If calling tokenURI for EIP-721 or uri for EIP-1155 returns the URI of a JSON document D2, all top-level fields listed in metadataFields must be present and have the same values.

This condition requires the verifier to obtain the URI of JSON document D2 from an EIP-721 or EIP-1155 compliant contract and check that its top-level fields listed in metadataFields have matching values. For example, if metadataFields is ["name", "description"], D2 could contain the following metadata.

json
{
    "name": "My NFT",
    "description": "This is an example NFT",
    // Other fields go here
}

4. The EIP-712 signature in signature must be valid.

This condition requires successful verification of the EIP-712 signature in each author's signature field against the corresponding message. This checks that the signed consent information has not been tampered with.

Satisfying these conditions verifies the validity of the authorship claim and associated consent information. The verifier follows these steps to check whether the information was actually approved by the claimed author.

Even if an NFT has a valid consent proof for address X, the verifier must never conclude with certainty that X is the actual author. However, if the NFT does not provide a valid consent proof for address X, the verifier may assume that X is unlikely to be its actual author.

The verifier must follow these procedures and criteria to assess the validity of the consent proof and the associated author information.

Rationale

Because conclusively identifying the original author of an NFT is difficult, this standard provides only author consent proofs.

Suppose there were a protocol for verifying which user actually created a given NFT. Even with such a protocol, an attacker could make a small modification to the NFT and create a new one. The attacker could then claim to be the legitimate author of that new NFT. Examples include modifying part of an image or replacing part of a text. Preventing this would require a precise definition of when two NFTs are semantically equivalent. Defining such a concept is difficult in its own right and falls outside the scope of this standard.

The same problem arises when the minting address is used as a proxy for the author.

Identifying the original author is therefore a complex problem without a practical solution in this context. Instead, the standard focuses on author consent proofs to establish that an author has consented and that the information is provided with that author's approval.

Identifying the original author would require a protocol that answers the following question: Given NFT Y and user X claiming to be its original author, is X actually the original author of Y?

Why off-chain?

  • There are three reasons to provide off-chain support.
    1. Existing smart contracts do not need to be modified.
    2. Off-chain storage is generally less expensive than on-chain storage, reducing the barrier to implementation.
    3. Author consent is mainly used by users to determine an NFT's subjective value, so relatively few use cases require on-chain proof of authorship.

Why repeat id, chainId, and contractAddress?

The JSON document itself needs to contain the information necessary to verify author consent.

These values may normally be derived from contextual information. However, the JSON document must contain enough information on its own to verify consent. Repeating the information makes the JSON document sufficient for consent verification without additional information.

This design allows the JSON document itself to provide all the information needed to verify consent without external context or additional requests. Verification can therefore be more efficient and reliable.

Why not implement a revocation system?

NFT authorship is generally considered final. Once someone has created an NFT, its authorship is established. The fact of who created it is not expected to change. There is therefore generally no need to revoke or change authorship later.

Implementing a revocation system, on the other hand, adds requirements to the smart contract implementation. It may also increase the complexity of verification.

A revocation system changes the state associated with an existing NFT and requires additional logic and management. This can make smart contract code more complex and increase the likelihood of bugs and security risks.

For these reasons, this EIP does not introduce a revocation system. A smart contract can nevertheless implement a revocation system defined by another EIP. The main purpose of this EIP is to provide a mechanism based on proof of author consent.

Why escape non-ASCII characters in signed messages?

EIP-712 was designed with verification inside smart contracts in mind. It accounts for cases where transaction validity is checked within smart contracts. This proposal, however, prioritizes off-chain support over on-chain verification. On-chain verification is therefore not its primary focus.

Processing strings containing non-ASCII characters inside smart contracts can be complicated. Non-ASCII characters typically represent particular Unicode code points. Handling such strings in smart contracts can increase code complexity and lead to bugs or unexpected behavior.

Given the difficulty of processing non-ASCII strings inside smart contracts, this EIP requires non-ASCII characters in signed messages to be escaped. Escaping makes contract-side processing more predictable and supports secure handling of signed messages without adding unnecessary contract complexity.

Improving the author experience

EIP-712 enables verification of signed messages following a specific protocol. Through this proposal, an NFT author can demonstrate their consent to an authorship claim when creating a new work. Because the process can be cumbersome and require technical knowledge, the proposal includes mechanisms to make it easier for authors.

The following points are considered.

  1. Delegate the technical aspects of minting to the minter Authors would otherwise have to carry out the procedures and transactions required to mint their works as NFTs, but they can delegate these technical tasks to a specialist minter. This reduces the burden of dealing with technical details and procedures.

  2. Focus on signing the EIP-712 message The author only needs to sign an EIP-712 message. This allows authors to attest to their authorship claims and focus on creative work without dealing with complicated technical procedures.

  3. Obtain an EVM wallet The author needs an EVM (Ethereum Virtual Machine) wallet. This provides a platform for creating and signing messages.

  4. Simplified procedures In many cases, a decentralized application (dapp) can make reading and signing EIP-712 messages easier. A dapp provides an intuitive user interface that simplifies the signing process.

These mechanisms allow authors to focus on creating their work while minimizing the technical effort needed to create and sign NFTs. One aim of the proposal is to reduce technical barriers and make the process more convenient for authors.

This EIP provides a protocol for verifying that a particular address has given consent. NFT authors can use it to express consent regarding their own works. It is important to note that the protocol does not guarantee that the consenting address corresponds to the actual author.

For example, an author's name in the NFT metadata does not necessarily match the associated address. Establishing that the consenting address belongs to the actual author requires clear proof linking the address to the corresponding entity, such as a real person or organization.

The document does not specify a protocol or method for establishing that link. The EIP provides only a method for verifying address-based consent; establishing the relationship between an address and the actual author is outside its scope.

The following sections cover compatibility and security considerations.

Backward Compatibility

No particular concerns.

Security Considerations

Attacks

This EIP uses signed messages to express consent to particular actions, such as creating an NFT. An attacker may try to induce an author to sign a consent message without authorization. For example, obtaining such a signature without the author's consent may allow the attacker to misrepresent authorship.

Authors must therefore check that every field in the message to be signed is correct to avoid signing against their wishes. This helps prevent unauthorized signatures.

A subtler attack is to omit important information from metadataFields. If important information is omitted, for example, the minter may change it without invalidating the author's signature. It is therefore important to check the validity of both the signature and the information it covers.

Authors should verify that the message expressing their consent is legitimate and ensure that it is not signed without authorization. Including important information in metadataFields and verifying its validity prevents an attacker from changing that signed information while retaining a valid signature.

Deprecated functionality

Originally, ERC5375AuthorInfoSchema included a field for the author's name, but it was removed because of the high risk of author impersonation (spoofing).

  1. Alice mints an NFT using Bob's name and Alice's address.
  2. Charlie relies on the provided name without checking the address.
  3. Charlie buys Alice's NFT believing that Bob created it.

Smart contract developers should therefore take care not to add unverifiable information to JSON documents. The safest way to provide author information, such as an author's name, is to prove that it is associated with the author's address rather than with the NFT itself.

Resistance to replay attacks

The chain ID, contract address, and token ID uniquely identify an NFT. Additional replay protection, such as a nonce system, is therefore not required.

See the following article for more information about replay attacks.

https://chaldene.net/solidity-reentrancy-attack

Citation

Samuele Marro (@samuelemarro), Luca Donno (@lucadonnoh), "ERC-5375: NFT Author Information and Consent," Ethereum Improvement Proposals, no. 5375, July 2022. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-5375.

Conclusion

The original article's closing paragraph refers to ERC-5570, a proposal for recording purchase receipts in NFT metadata on the blockchain, rather than ERC-5375, which is the subject of this article. I hope this explanation was helpful.

If you have any questions, feel free to contact me via Twitter DM.

Twitter @cardene777