ERC-5553 · Stagnant · ERC · 2022-08-17
ERC-5553: Representing IP and its Royalty Structure
Proposed ERC-721 extension that represents a piece of intellectual property on chain, separately from its sale, with a metadata link and a list of ERC-20 tokens that each represent one kind of royalty share.
What problem does it solve?
Today an NFT mostly stands for a collectible being bought and sold. Royalty standards such as ERC-2981 handle one case: a cut of each NFT sale, split the same way for everyone. Real IP, like a song, has several kinds of rights holders who get paid differently depending on how the work is used. Music distinguishes composition/publishing royalties from recording/master royalties, and a cover version pays the original songwriters but not the original recording artists.
EIP-5553 separates declaring that an IP exists from selling it, and attaches a richer royalty structure. Licences and collectibles can then be built as their own NFTs on top of one canonical IP record.
How it works
An IP Representation (IPR) contract must implement ERC-721 plus the IIPRepresentation interface:
| Member | Purpose |
|---|---|
royaltyPortionTokens() |
Array of ERC-20 token addresses, one per royalty type. Holding 10 % of a token means receiving 10 % of payouts for that type |
metadataURI() |
URI of the IP's metadata file, which must sit on IPFS, Arweave or similar content-addressed storage (or an empty string) |
changeMetadataURI(newUri, newFileHash) |
Point to a new metadata version; emits a change event |
ledger() |
The registry, registrar or EOA that registered the IP and created its royalty tokens |
Each IP type may define its own metadata standard. Using plain ERC-20 tokens for royalty shares means they can be moved, traded or queried with existing tools.
Sample code
Reading an IP's royalty structure with ethers v6:
import { Contract, JsonRpcProvider } from "ethers";
const provider = new JsonRpcProvider(process.env.RPC_URL);
const me = "0xYourAddress"; // holder to check
const ipr = new Contract(iprAddress, [
"function royaltyPortionTokens() view returns (address[])",
"function metadataURI() view returns (string)",
"function ledger() view returns (address)",
], provider);
const erc20 = [
"function symbol() view returns (string)",
"function balanceOf(address) view returns (uint256)",
"function totalSupply() view returns (uint256)",
];
console.log("metadata:", await ipr.metadataURI(), "registered by:", await ipr.ledger());
for (const addr of await ipr.royaltyPortionTokens()) {
const t = new Contract(addr, erc20, provider);
const [sym, mine, total]: [string, bigint, bigint] = await Promise.all([t.symbol(), t.balanceOf(me), t.totalSupply()]);
const bps = total === 0n ? 0n : (mine * 10_000n) / total;
console.log(`${sym}: ${Number(bps) / 100}% share`);
}
Things to know
- Status: Stagnant.
- The spec's interface declares the event as
MetadaDataChanged(byAddress, oldURI, oldFileHash, newURI, newFileHash), while its reference implementation emits a differently namedMetadataChangedwithoutbyAddress. Pick one and document it if you implement this. changeMetadataURIhas no access control in the reference code; a real implementation must restrict it.- No ERC-165 interface ID is fixed in the spec.
- The spec recommends that registry contracts own IP registrations and that these be non-transferable (bound to the registry that created them).
- Royalty-share tokens are normal ERC-20s, so the usual phishing risk applies: anyone tricked into sending them away loses that royalty share. Whether holding such tokens confers any legal right depends on off-chain agreements.