{"eip":7015,"title":"NFT Creator Attribution","description":"Extending NFTs with cryptographically secured creator attribution.","authors":["indreams (@strollinghome)"],"status":"Review","type":"Standards Track","category":"ERC","created":"2023-05-11","requires":[55,155,712,721,1155],"discussionsTo":"https://ethereum-magicians.org/t/eip-authorship-attribution-for-erc721/14244","repo":"ERCs","label":"ERC-7015","officialUrl":"https://eips.ethereum.org/EIPS/eip-7015","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-7015.md","url":"https://eips.huatuo.xyz/eip-7015/","tldr":{"en":"NFT contracts emit a signed `CreatorAttribution` event at deployment, so platforms can credit the real creator even when someone else (a smart wallet, relayer or first collector) paid for the deploy.","ja":"NFT コントラクトがデプロイ時に署名付きの `CreatorAttribution` イベントを発行し、デプロイ費用を別の誰か（スマートウォレット、リレイヤー、最初のコレクター）が支払った場合でも、プラットフォームが本当のクリエイターをクレジットできるようにする。","ko":"NFT 컨트랙트가 배포 시 서명된 `CreatorAttribution` 이벤트를 발생시켜, 다른 누군가(스마트 지갑, 릴레이어, 첫 컬렉터)가 배포 비용을 냈더라도 플랫폼이 실제 크리에이터를 인정할 수 있게 한다.","zh":"NFT 合约在部署时发出带签名的 `CreatorAttribution` 事件，使平台即使在他人（智能钱包、中继器或第一位收藏者）支付了部署费用的情况下，也能将功劳归于真正的创作者。"},"tags":["nft","creator","attribution","eip-712","signatures"],"explainers":{"en":{"lang":"en","tldr":"NFT contracts emit a signed `CreatorAttribution` event at deployment, so platforms can credit the real creator even when someone else (a smart wallet, relayer or first collector) paid for the deploy.","tags":["nft","creator","attribution","eip-712","signatures"],"related":[721,1155,712,1271,5375],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7015/","markdown":"## What problem does it solve?\n\nNFT platforms usually treat whoever deployed a collection's contract as its creator. That breaks more and more often: creators use smart wallets, platforms sponsor gas, or \"lazy\" flows let the first collector deploy the contract when they mint. In each case the deployer is not the artist, and the wrong account gets the credit.\n\nERC-7015 lets the creator sign the creation parameters off-chain. Whoever deploys, the contract verifies that signature and records it in an event that platforms can check.\n\n## How it works\n\n1. **Creator signs.** The creator signs an [EIP-712](/eip-712/) typed message describing the creation, for example name, symbol, metadata URI or price. The struct is up to the app; only its hash (`structHash`) is needed later. The EIP-712 domain's `verifyingContract` is the NFT contract's address, which can be computed before deployment.\n2. **Contract verifies and emits.** During the deployment transaction, the NFT contract checks the signature and emits:\n\n```solidity\nevent CreatorAttribution(\n  bytes32 structHash,\n  string domainName,\n  string version,\n  address creator,\n  bytes signature\n);\n```\n\n3. **Platforms check.** An indexer rebuilds the EIP-712 digest from `domainName`, `version`, the chain id and the emitting contract as `verifyingContract`, then recovers the signer from `signature`. If it matches `creator`, attribution **must** go to `creator`, not to the transaction sender.\n\n`chainId` and `verifyingContract` are not in the event because they are implied by the transaction and the emitter. The reference implementation supports smart-account creators via [ERC-1271](/eip-1271/) as well as EOAs.\n\n## Sample code\n\nContract side (abridged from the reference implementation):\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\nimport {EIP712} from \"@openzeppelin/contracts/utils/cryptography/EIP712.sol\";\nimport {SignatureChecker} from \"@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol\";\n\nabstract contract ERC7015 is EIP712 {\n    event CreatorAttribution(bytes32 structHash, string domainName, string version, address creator, bytes signature);\n    error Invalid_Signature();\n\n    constructor() EIP712(\"ERC7015\", \"1\") {}\n\n    function _attribute(bytes32 structHash, address creator, bytes memory sig) internal {\n        bytes32 digest = _hashTypedDataV4(structHash);\n        if (!SignatureChecker.isValidSignatureNow(creator, digest, sig)) revert Invalid_Signature(); // EOA or ERC-1271\n        emit CreatorAttribution(structHash, \"ERC7015\", \"1\", creator, sig);\n    }\n}\n```\n\nPlatform side, checking an EOA creator from the event (ethers v6):\n\n```ts\nimport { TypedDataEncoder, concat, keccak256, recoverAddress } from \"ethers\";\n\nconst { structHash, domainName, version, creator, signature } = log.args;\nconst domainSep = TypedDataEncoder.hashDomain({\n  name: domainName, version, chainId, verifyingContract: log.address,\n});\nconst digest = keccak256(concat([\"0x1901\", domainSep, structHash]));\nconst ok = recoverAddress(digest, signature).toLowerCase() === creator.toLowerCase();\n```\n\n## Things to know\n\n- **Status: Review.** Not Final yet.\n- The event must be emitted in the **deployment transaction**, so existing NFT contracts cannot adopt it after the fact.\n- It proves that an *address* consented, not who the person behind it is.\n- Creators should read what they are signing; a phishing site could trick them into signing attribution for a collection they did not intend.\n- [ERC-5375](/eip-5375/) tackles a similar problem with off-chain data. ERC-7015 keeps the proof fully on-chain and can cover a whole collection.\n"},"ja":{"lang":"ja","tldr":"NFT コントラクトがデプロイ時に署名付きの `CreatorAttribution` イベントを発行し、デプロイ費用を別の誰か（スマートウォレット、リレイヤー、最初のコレクター）が支払った場合でも、プラットフォームが本当のクリエイターをクレジットできるようにする。","tags":["nft","creator","attribution","eip-712","signatures"],"related":[721,1155,712,1271,5375],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7015/","markdown":"## 何を解決するのか\n\nNFT プラットフォームは通常、コレクションのコントラクトをデプロイした者をそのクリエイターとして扱います。これはますます成り立たなくなっています。クリエイターがスマートウォレットを使う、プラットフォームがガス代を負担する、あるいは「レイジー」なフローで最初のコレクターがミント時にコントラクトをデプロイする、といったケースです。いずれの場合も、デプロイヤーはアーティストではなく、間違ったアカウントにクレジットが付いてしまいます。\n\nERC-7015 は、クリエイターが作成パラメータをオフチェーンで署名できるようにします。誰がデプロイしても、コントラクトがその署名を検証し、プラットフォームが確認できるイベントに記録します。\n\n## 仕組み\n\n1. **クリエイターが署名する。** クリエイターは、作成内容（たとえば名前、シンボル、メタデータ URI、価格）を記述した [EIP-712](/eip-712/) の型付きメッセージに署名します。構造体はアプリ次第で、後で必要になるのはそのハッシュ（`structHash`）だけです。EIP-712 ドメインの `verifyingContract` は NFT コントラクトのアドレスで、デプロイ前に計算できます。\n2. **コントラクトが検証してイベントを発行する。** デプロイのトランザクション中に、NFT コントラクトが署名を確認し、次のイベントを発行します。\n\n```solidity\nevent CreatorAttribution(\n  bytes32 structHash,\n  string domainName,\n  string version,\n  address creator,\n  bytes signature\n);\n```\n\n3. **プラットフォームが確認する。** インデクサーは、`domainName`、`version`、チェーン ID、発行元コントラクト（`verifyingContract`）から EIP-712 のダイジェストを再構築し、`signature` から署名者を復元します。それが `creator` と一致する場合、クレジットはトランザクション送信者ではなく `creator` に**必ず**付与されなければなりません。\n\n`chainId` と `verifyingContract` は、トランザクションと発行元から分かるため、イベントには含まれていません。リファレンス実装は EOA に加えて、[ERC-1271](/eip-1271/) 経由でスマートアカウントのクリエイターにも対応しています。\n\n## サンプルコード\n\nコントラクト側（リファレンス実装の抜粋）:\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\nimport {EIP712} from \"@openzeppelin/contracts/utils/cryptography/EIP712.sol\";\nimport {SignatureChecker} from \"@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol\";\n\nabstract contract ERC7015 is EIP712 {\n    event CreatorAttribution(bytes32 structHash, string domainName, string version, address creator, bytes signature);\n    error Invalid_Signature();\n\n    constructor() EIP712(\"ERC7015\", \"1\") {}\n\n    function _attribute(bytes32 structHash, address creator, bytes memory sig) internal {\n        bytes32 digest = _hashTypedDataV4(structHash);\n        if (!SignatureChecker.isValidSignatureNow(creator, digest, sig)) revert Invalid_Signature(); // EOA or ERC-1271\n        emit CreatorAttribution(structHash, \"ERC7015\", \"1\", creator, sig);\n    }\n}\n```\n\nプラットフォーム側。イベントから EOA のクリエイターを確認する例（ethers v6）:\n\n```ts\nimport { TypedDataEncoder, concat, keccak256, recoverAddress } from \"ethers\";\n\nconst { structHash, domainName, version, creator, signature } = log.args;\nconst domainSep = TypedDataEncoder.hashDomain({\n  name: domainName, version, chainId, verifyingContract: log.address,\n});\nconst digest = keccak256(concat([\"0x1901\", domainSep, structHash]));\nconst ok = recoverAddress(digest, signature).toLowerCase() === creator.toLowerCase();\n```\n\n## 知っておくべきこと\n\n- **ステータス: Review。** まだ Final ではありません。\n- イベントは**デプロイのトランザクション**で発行されなければならないため、既存の NFT コントラクトは後から採用できません。\n- 証明されるのは*アドレス*が同意したことであり、その背後にいる人が誰かではありません。\n- クリエイターは署名する内容をよく読むべきです。フィッシングサイトにだまされて、意図していないコレクションのクレジットに署名してしまう可能性があります。\n- [ERC-5375](/eip-5375/) はオフチェーンデータで似た問題に取り組んでいます。ERC-7015 は証明を完全にオンチェーンに保ち、コレクション全体をカバーできます。\n"},"ko":{"lang":"ko","tldr":"NFT 컨트랙트가 배포 시 서명된 `CreatorAttribution` 이벤트를 발생시켜, 다른 누군가(스마트 지갑, 릴레이어, 첫 컬렉터)가 배포 비용을 냈더라도 플랫폼이 실제 크리에이터를 인정할 수 있게 한다.","tags":["nft","creator","attribution","eip-712","signatures"],"related":[721,1155,712,1271,5375],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7015/","markdown":"## 어떤 문제를 해결하나요?\n\nNFT 플랫폼은 보통 컬렉션 컨트랙트를 배포한 사람을 그 크리에이터로 취급합니다. 이 방식은 점점 더 맞지 않게 되고 있습니다. 크리에이터가 스마트 지갑을 쓰거나, 플랫폼이 가스비를 대신 내거나, \"레이지\" 흐름에서 첫 컬렉터가 민팅할 때 컨트랙트를 배포하기도 합니다. 어느 경우든 배포자는 작가가 아니며, 엉뚱한 계정이 공을 인정받게 됩니다.\n\nERC-7015는 크리에이터가 생성 파라미터에 오프체인으로 서명하게 합니다. 누가 배포하든 컨트랙트가 그 서명을 검증하고, 플랫폼이 확인할 수 있는 이벤트에 기록합니다.\n\n## 어떻게 동작하나요?\n\n1. **크리에이터가 서명합니다.** 크리에이터는 생성 내용(예: 이름, 심볼, 메타데이터 URI, 가격)을 기술한 [EIP-712](/eip-712/) 타입 메시지에 서명합니다. 구조체는 앱이 정하며, 나중에 필요한 것은 그 해시(`structHash`)뿐입니다. EIP-712 도메인의 `verifyingContract`는 NFT 컨트랙트의 주소이며, 배포 전에 계산할 수 있습니다.\n2. **컨트랙트가 검증하고 이벤트를 발생시킵니다.** 배포 트랜잭션 중에 NFT 컨트랙트가 서명을 확인하고 다음 이벤트를 발생시킵니다.\n\n```solidity\nevent CreatorAttribution(\n  bytes32 structHash,\n  string domainName,\n  string version,\n  address creator,\n  bytes signature\n);\n```\n\n3. **플랫폼이 확인합니다.** 인덱서는 `domainName`, `version`, 체인 id, 이벤트를 발생시킨 컨트랙트(`verifyingContract`)로 EIP-712 다이제스트를 다시 만들고, `signature`에서 서명자를 복구합니다. 그것이 `creator`와 일치하면 공은 트랜잭션 발신자가 아니라 `creator`에게 **반드시** 돌아가야 합니다.\n\n`chainId`와 `verifyingContract`는 트랜잭션과 이벤트 발생자에서 알 수 있으므로 이벤트에 들어 있지 않습니다. 레퍼런스 구현은 EOA뿐 아니라 [ERC-1271](/eip-1271/)을 통해 스마트 계정 크리에이터도 지원합니다.\n\n## 샘플 코드\n\n컨트랙트 측(레퍼런스 구현에서 발췌):\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\nimport {EIP712} from \"@openzeppelin/contracts/utils/cryptography/EIP712.sol\";\nimport {SignatureChecker} from \"@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol\";\n\nabstract contract ERC7015 is EIP712 {\n    event CreatorAttribution(bytes32 structHash, string domainName, string version, address creator, bytes signature);\n    error Invalid_Signature();\n\n    constructor() EIP712(\"ERC7015\", \"1\") {}\n\n    function _attribute(bytes32 structHash, address creator, bytes memory sig) internal {\n        bytes32 digest = _hashTypedDataV4(structHash);\n        if (!SignatureChecker.isValidSignatureNow(creator, digest, sig)) revert Invalid_Signature(); // EOA or ERC-1271\n        emit CreatorAttribution(structHash, \"ERC7015\", \"1\", creator, sig);\n    }\n}\n```\n\n플랫폼 측, 이벤트로 EOA 크리에이터 확인(ethers v6):\n\n```ts\nimport { TypedDataEncoder, concat, keccak256, recoverAddress } from \"ethers\";\n\nconst { structHash, domainName, version, creator, signature } = log.args;\nconst domainSep = TypedDataEncoder.hashDomain({\n  name: domainName, version, chainId, verifyingContract: log.address,\n});\nconst digest = keccak256(concat([\"0x1901\", domainSep, structHash]));\nconst ok = recoverAddress(digest, signature).toLowerCase() === creator.toLowerCase();\n```\n\n## 알아둘 점\n\n- **상태: Review.** 아직 Final이 아닙니다.\n- 이벤트는 **배포 트랜잭션**에서 발생해야 하므로, 기존 NFT 컨트랙트는 사후에 도입할 수 없습니다.\n- 이는 어떤 *주소*가 동의했음을 증명할 뿐, 그 뒤의 사람이 누구인지는 증명하지 않습니다.\n- 크리에이터는 자신이 서명하는 내용을 읽어야 합니다. 피싱 사이트가 의도하지 않은 컬렉션의 귀속에 서명하도록 속일 수 있습니다.\n- [ERC-5375](/eip-5375/)는 오프체인 데이터로 비슷한 문제를 다룹니다. ERC-7015는 증명을 완전히 온체인에 두며 컬렉션 전체를 포괄할 수 있습니다.\n"},"zh":{"lang":"zh","tldr":"NFT 合约在部署时发出带签名的 `CreatorAttribution` 事件，使平台即使在他人（智能钱包、中继器或第一位收藏者）支付了部署费用的情况下，也能将功劳归于真正的创作者。","tags":["nft","creator","attribution","eip-712","signatures"],"related":[721,1155,712,1271,5375],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7015/","markdown":"## 它解决什么问题？\n\nNFT 平台通常把部署某个系列合约的人视为其创作者。这种做法越来越行不通：创作者使用智能钱包、平台代付 gas，或者\"懒\"流程让第一位收藏者在铸造时部署合约。在每种情况下，部署者都不是艺术家，功劳被记到了错误的账户上。\n\nERC-7015 让创作者在链下对创建参数签名。无论由谁部署，合约都会验证该签名，并将其记录在平台可以检查的事件中。\n\n## 它如何运作\n\n1. **创作者签名。** 创作者对一条描述创建内容（例如名称、符号、元数据 URI 或价格）的 [EIP-712](/eip-712/) 类型化消息签名。结构体由应用自行决定；之后只需要它的哈希（`structHash`）。EIP-712 域的 `verifyingContract` 是 NFT 合约的地址，可以在部署前计算出来。\n2. **合约验证并发出事件。** 在部署交易期间，NFT 合约检查签名并发出：\n\n```solidity\nevent CreatorAttribution(\n  bytes32 structHash,\n  string domainName,\n  string version,\n  address creator,\n  bytes signature\n);\n```\n\n3. **平台检查。** 索引器根据 `domainName`、`version`、链 id 以及作为 `verifyingContract` 的发出事件的合约重建 EIP-712 摘要，然后从 `signature` 恢复签名者。如果与 `creator` 一致，则功劳**必须**归于 `creator`，而不是交易发送者。\n\n`chainId` 和 `verifyingContract` 不在事件中，因为它们可由交易和事件发出者推知。参考实现除了 EOA 外，还通过 [ERC-1271](/eip-1271/) 支持智能账户创作者。\n\n## 示例代码\n\n合约端（摘自参考实现，有删节）：\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\nimport {EIP712} from \"@openzeppelin/contracts/utils/cryptography/EIP712.sol\";\nimport {SignatureChecker} from \"@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol\";\n\nabstract contract ERC7015 is EIP712 {\n    event CreatorAttribution(bytes32 structHash, string domainName, string version, address creator, bytes signature);\n    error Invalid_Signature();\n\n    constructor() EIP712(\"ERC7015\", \"1\") {}\n\n    function _attribute(bytes32 structHash, address creator, bytes memory sig) internal {\n        bytes32 digest = _hashTypedDataV4(structHash);\n        if (!SignatureChecker.isValidSignatureNow(creator, digest, sig)) revert Invalid_Signature(); // EOA or ERC-1271\n        emit CreatorAttribution(structHash, \"ERC7015\", \"1\", creator, sig);\n    }\n}\n```\n\n平台端，根据事件检查 EOA 创作者（ethers v6）：\n\n```ts\nimport { TypedDataEncoder, concat, keccak256, recoverAddress } from \"ethers\";\n\nconst { structHash, domainName, version, creator, signature } = log.args;\nconst domainSep = TypedDataEncoder.hashDomain({\n  name: domainName, version, chainId, verifyingContract: log.address,\n});\nconst digest = keccak256(concat([\"0x1901\", domainSep, structHash]));\nconst ok = recoverAddress(digest, signature).toLowerCase() === creator.toLowerCase();\n```\n\n## 需要注意\n\n- **状态：Review。** 尚未达到 Final。\n- 事件必须在**部署交易**中发出，因此现有的 NFT 合约无法事后采用。\n- 它证明的是某个*地址*表示同意，而不是该地址背后的人是谁。\n- 创作者应当看清自己签署的内容；钓鱼网站可能诱骗他们为并非本意的系列签署归属。\n- [ERC-5375](/eip-5375/) 用链下数据解决类似的问题。ERC-7015 将证明完全保留在链上，并且可以覆盖整个系列。\n"}}}
