ERC-3440 · Stagnant · ERC · 2021-04-20
ERC-3440: ERC-721 Editions Standard
An ERC-721 extension for art that lets an artist fix a limited edition size, designate the original token, and attach an EIP-712 signature to individual tokens as on-chain provenance.
What problem does it solve?
ERC-721 was designed for generic unique assets: deeds, game items, collectibles. For digital art, the link between a token and the artist usually lives only in off-chain metadata, and the address that deployed or minted a collection is not necessarily a key the artist personally controls.
Physical art has two familiar trust signals: a numbered limited-edition print run, and the artist's signature on the original and the prints. ERC-3440 brings both to NFTs so marketplaces and viewers can show, from on-chain data alone, that the artist capped the supply and signed a specific token.
How it works
A contract extending ERC-721 adds:
artist: the address designated as the artist (set once).editionSupply: the maximum number of editions. Set once; no more IDs may be minted afterwards.originalId: the token ID that is the original. It defaults to0and can be designated only once.- Signing: the artist signs an EIP-712 message (fields: verification address = this contract, artist name, wallet, contents). The artist calls a sign function, the contract checks that the signature recovers to
artist, stores it against the token ID (once only) and emitsSigned(from, tokenId). - Views:
getSignature(tokenId)returns the stored signature;isSigned(message, signature, tokenId)checks that it recovers to the artist and matches what is stored.
Signing is optional; edition limits and the original designation are required. The reference design does all one-time setup in the constructor so the artist cannot change the supply after selling.
Sample code
Signing a token off-chain with ethers v6, following the reference struct (domain values match the spec's example contract):
import { Wallet } from "ethers";
const domain = {
name: "Artist's Editions",
version: "1",
chainId: 1,
verifyingContract: artTokenAddress,
};
const types = {
Signature: [
{ name: "verificationAddress", type: "address" },
{ name: "artist", type: "string" },
{ name: "wallet", type: "address" },
{ name: "contents", type: "string" },
],
};
const message = {
verificationAddress: artTokenAddress, // bind the signature to this contract
artist: "Jane Doe",
wallet: artist.address,
contents: "Edition 3 of 10, signed",
};
const signature = await artist.signTypedData(domain, types, message);
// Then, from the artist account:
// await artToken.sign(3, message, signature);
Things to know
- Status is Stagnant; it was not widely adopted by marketplaces.
- The reference Solidity in the spec has inconsistencies. Its
SIGNATURE_TYPEHASHstring uses a different field name (verifyAddress) and extra whitespace compared to the struct, and some calls refer tohashinstead of_hash. A signature built from the struct as above will not match that typehash, so fix the type string in any real implementation. - A signature proves the artist's key approved a message about a token; it does not stop someone from copying the artwork itself.
- For artist royalties on secondary sales, see ERC-2981, which is a separate and widely supported extension.