{"eip":5635,"title":"NFT Licensing Agreements","description":"An oracle for retrieving NFT licensing agreements","authors":["Timi (@0xTimi)","0xTriple7 (@ysqi)"],"status":"Stagnant","type":"Standards Track","category":"ERC","created":"2022-08-10","requires":[165,721,1155,2981],"discussionsTo":"https://ethereum-magicians.org/t/eip-5635-discussion-nft-licensing-agreement-standard/10779","repo":"ERCs","label":"ERC-5635","officialUrl":"https://eips.ethereum.org/EIPS/eip-5635","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-5635.md","url":"https://eips.huatuo.xyz/eip-5635/","tldr":{"en":"A stagnant proposal for an on-chain registry of licensing agreements, so marketplaces can check whether a derivative NFT was actually licensed by the owner of the original NFT and who is owed royalties.","ja":"ライセンス契約のオンチェーンレジストリに関する停滞中の提案。マーケットプレイスが、派生 NFT が元の NFT の所有者から本当にライセンスされているか、ロイヤリティを受け取る権利が誰にあるかを確認できるようにする。","ko":"라이선스 계약의 온체인 레지스트리에 관한 정체된 제안. 마켓플레이스가 파생 NFT가 원본 NFT 소유자에게 실제로 라이선스를 받았는지, 로열티를 받을 사람이 누구인지 확인할 수 있게 한다.","zh":"一个已停滞的提案：建立链上许可协议注册表，让市场可以检查衍生 NFT 是否确实获得了原 NFT 所有者的许可，以及谁应获得版税。"},"tags":["nft","licensing","royalties","derivatives","registry"],"explainers":{"en":{"lang":"en","tldr":"A stagnant proposal for an on-chain registry of licensing agreements, so marketplaces can check whether a derivative NFT was actually licensed by the owner of the original NFT and who is owed royalties.","tags":["nft","licensing","royalties","derivatives","registry"],"related":[721,1155,2981,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-5635/","markdown":"## What problem does it solve?\n\nNFTs are often remixed: someone takes the art or traits of an existing NFT and mints a new \"derivative\" collection. Nothing on-chain tells a buyer or marketplace whether the original holder agreed to that, on what terms, or who should receive royalties.\n\nERC-5635 proposes a common way to record and look up such licensing agreements. It calls the original NFT an **oNFT** (held by the *licensor*) and the derivative a **dNFT** (held by the *licensee*). A licensing agreement says the licensor allowed the licensee to create the dNFT, usually in exchange for a royalty.\n\n## How it works\n\nThe standard has three roles and three interfaces:\n\n- **dNFT contract** (`IERC5635DNFT`, required for derivatives). For each token it exposes `numberOfCredentials(tokenId)` and `authorizedBy(tokenId, credentialId)`, which returns the oNFT contract, the oNFT token id, and the **registry** that can verify that credential.\n- **Registry** (`IERC5635Registry`, required). A trusted contract that answers:\n  - `isLicensed(dNFT, dNFTId, oNFT, oNFTId)` — yes or no;\n  - `licensingInfo(...)` — licensor, signature time, expiry, agreement type (`NonExclusive`, `Exclusive`, `Sole`), license name (e.g. an SPDX-style identifier) and a license URI;\n  - `royaltyRate(...)` — beneficiary and rate, with 9 decimals (divide by 1,000,000,000).\n- **Licensing** (`IERC5635Licensing`, optional on the registry). Lets the oNFT holder, or an approved operator, call `licence(...)` to grant an agreement. It mirrors ERC-721 approvals with `approve` and `setApprovalForAll` per oNFT contract.\n\nThe spec splits the lifecycle in two: the **Licensing** stage, before the dNFT is minted, and the **Discovery** stage, after it, when marketplaces read credentials from the dNFT and verify them against the registry.\n\nRights follow the token. When an oNFT is sold, the new owner becomes the beneficiary of its licensing agreements.\n\n## Sample code\n\nA marketplace checking whether a listed NFT is a dNFT and whether its first credential is licensed:\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.20;\n\ninterface IERC165 { function supportsInterface(bytes4 id) external view returns (bool); }\n\ninterface IERC5635DNFT {\n    function numberOfCredentials(uint256 tokenId) external view returns (uint256);\n    function authorizedBy(uint256 tokenId, uint256 credentialId)\n        external view returns (address oNFT, uint256 oNFTId, address registry);\n}\n\ninterface IERC5635Registry {\n    function isLicensed(address dNFT, uint256 dNFTId, address oNFT, uint256 oNFTId)\n        external view returns (bool);\n}\n\ncontract LicenseCheck {\n    bytes4 constant DNFT_ID = 0xd584841c; // from the spec\n\n    function firstCredentialValid(address dnft, uint256 tokenId) external view returns (bool) {\n        if (!IERC165(dnft).supportsInterface(DNFT_ID)) return false;\n        if (IERC5635DNFT(dnft).numberOfCredentials(tokenId) == 0) return false;\n        (address o, uint256 oId, address reg) = IERC5635DNFT(dnft).authorizedBy(tokenId, 0);\n        return IERC5635Registry(reg).isLicensed(dnft, tokenId, o, oId);\n    }\n}\n```\n\n## Things to know\n\n- **Status: Stagnant.** The proposal has not progressed. The spec text still contains open `TODO` notes and its Security Considerations section just says \"Needs discussion\".\n- Like [ERC-2981](/eip-2981/) royalties, nothing here is enforced on-chain. It only works if marketplaces choose to read and respect it.\n- Trust sits with the registry. A dNFT can point to any registry, so a consumer must decide which registries it trusts.\n- The spec says creator-to-holder licenses (such as \"Can't Be Evil\") are different from licensor-to-licensee agreements and cannot replace them.\n- The interface snippets in the spec target Solidity 0.6 and do not compile as written (for example, `indexed` on function parameters). Treat them as a sketch.\n"},"ja":{"lang":"ja","tldr":"ライセンス契約のオンチェーンレジストリに関する停滞中の提案。マーケットプレイスが、派生 NFT が元の NFT の所有者から本当にライセンスされているか、ロイヤリティを受け取る権利が誰にあるかを確認できるようにする。","tags":["nft","licensing","royalties","derivatives","registry"],"related":[721,1155,2981,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-5635/","markdown":"## 何を解決するのか\n\nNFT はしばしばリミックスされます。誰かが既存の NFT のアートやトレイトを使って、新しい「派生」コレクションをミントします。元の保有者がそれに同意したのか、どのような条件なのか、ロイヤリティを誰が受け取るべきなのかを、買い手やマーケットプレイスに伝えるものはオンチェーンにありません。\n\nERC-5635 は、そのようなライセンス契約を記録し照会するための共通の方法を提案します。元の NFT を **oNFT**（*ライセンサー*が保有）、派生を **dNFT**（*ライセンシー*が保有）と呼びます。ライセンス契約は、ライセンサーがライセンシーに dNFT の作成を許可したことを示し、通常はロイヤリティと引き換えです。\n\n## 仕組み\n\n標準には 3 つの役割と 3 つのインターフェースがあります。\n\n- **dNFT コントラクト**（`IERC5635DNFT`、派生には必須）。トークンごとに `numberOfCredentials(tokenId)` と `authorizedBy(tokenId, credentialId)` を公開し、後者は oNFT コントラクト、oNFT のトークン ID、そのクレデンシャルを検証できる**レジストリ**を返します。\n- **レジストリ**（`IERC5635Registry`、必須）。次に答える、信頼されたコントラクトです。\n  - `isLicensed(dNFT, dNFTId, oNFT, oNFTId)` — はい／いいえ\n  - `licensingInfo(...)` — ライセンサー、署名時刻、有効期限、契約の種類（`NonExclusive`、`Exclusive`、`Sole`）、ライセンス名（SPDX 形式の識別子など）、ライセンス URI\n  - `royaltyRate(...)` — 受益者と料率（小数 9 桁。1,000,000,000 で割る）\n- **Licensing**（`IERC5635Licensing`、レジストリでは任意）。oNFT の保有者または承認されたオペレーターが `licence(...)` を呼んで契約を付与できるようにします。oNFT コントラクトごとの `approve` と `setApprovalForAll` で、ERC-721 の承認を模しています。\n\n仕様はライフサイクルを 2 つに分けています。dNFT がミントされる前の **Licensing** 段階と、その後の **Discovery** 段階です。後者では、マーケットプレイスが dNFT からクレデンシャルを読み取り、レジストリに照らして検証します。\n\n権利はトークンに従います。oNFT が売却されると、新しい所有者がそのライセンス契約の受益者になります。\n\n## サンプルコード\n\nマーケットプレイスが、出品された NFT が dNFT かどうか、その最初のクレデンシャルがライセンスされているかを確認する例:\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.20;\n\ninterface IERC165 { function supportsInterface(bytes4 id) external view returns (bool); }\n\ninterface IERC5635DNFT {\n    function numberOfCredentials(uint256 tokenId) external view returns (uint256);\n    function authorizedBy(uint256 tokenId, uint256 credentialId)\n        external view returns (address oNFT, uint256 oNFTId, address registry);\n}\n\ninterface IERC5635Registry {\n    function isLicensed(address dNFT, uint256 dNFTId, address oNFT, uint256 oNFTId)\n        external view returns (bool);\n}\n\ncontract LicenseCheck {\n    bytes4 constant DNFT_ID = 0xd584841c; // from the spec\n\n    function firstCredentialValid(address dnft, uint256 tokenId) external view returns (bool) {\n        if (!IERC165(dnft).supportsInterface(DNFT_ID)) return false;\n        if (IERC5635DNFT(dnft).numberOfCredentials(tokenId) == 0) return false;\n        (address o, uint256 oId, address reg) = IERC5635DNFT(dnft).authorizedBy(tokenId, 0);\n        return IERC5635Registry(reg).isLicensed(dnft, tokenId, o, oId);\n    }\n}\n```\n\n## 知っておくべきこと\n\n- **ステータス: Stagnant。** 提案は進展していません。仕様の文章には未解決の `TODO` が残っており、Security Considerations には「要議論」とあるだけです。\n- [ERC-2981](/eip-2981/) のロイヤリティと同様に、ここでもオンチェーンで強制されるものはありません。マーケットプレイスが読み取って尊重することを選んだ場合にのみ機能します。\n- 信頼はレジストリにあります。dNFT は任意のレジストリを指せるため、利用側はどのレジストリを信頼するかを決めなければなりません。\n- 仕様は、クリエイターから保有者へのライセンス（「Can't Be Evil」など）はライセンサーからライセンシーへの契約とは別物であり、それに代わることはできないとしています。\n- 仕様内のインターフェースのスニペットは Solidity 0.6 を対象としており、書かれたままではコンパイルできません（たとえば関数パラメーターへの `indexed`）。スケッチとして扱ってください。\n"},"ko":{"lang":"ko","tldr":"라이선스 계약의 온체인 레지스트리에 관한 정체된 제안. 마켓플레이스가 파생 NFT가 원본 NFT 소유자에게 실제로 라이선스를 받았는지, 로열티를 받을 사람이 누구인지 확인할 수 있게 한다.","tags":["nft","licensing","royalties","derivatives","registry"],"related":[721,1155,2981,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-5635/","markdown":"## 어떤 문제를 해결하나요?\n\nNFT는 흔히 리믹스됩니다. 누군가 기존 NFT의 아트나 특성을 가져와 새로운 \"파생\" 컬렉션을 민팅합니다. 원본 보유자가 이에 동의했는지, 어떤 조건인지, 로열티를 누가 받아야 하는지 구매자나 마켓플레이스에 알려 주는 것은 온체인에 없습니다.\n\nERC-5635는 이런 라이선스 계약을 기록하고 조회하는 공통 방식을 제안합니다. 원본 NFT를 **oNFT**(*라이선서*가 보유), 파생을 **dNFT**(*라이선시*가 보유)라고 부릅니다. 라이선스 계약은 라이선서가 라이선시에게 dNFT 생성을 허용했음을 뜻하며, 보통 로열티를 대가로 합니다.\n\n## 어떻게 동작하나요?\n\n표준에는 세 가지 역할과 세 가지 인터페이스가 있습니다.\n\n- **dNFT 컨트랙트**(`IERC5635DNFT`, 파생에는 필수). 토큰마다 `numberOfCredentials(tokenId)`와 `authorizedBy(tokenId, credentialId)`를 노출하며, 후자는 oNFT 컨트랙트, oNFT 토큰 id, 그 자격을 검증할 수 있는 **레지스트리**를 반환합니다.\n- **레지스트리**(`IERC5635Registry`, 필수). 다음에 답하는 신뢰할 수 있는 컨트랙트입니다.\n  - `isLicensed(dNFT, dNFTId, oNFT, oNFTId)` — 예 또는 아니오\n  - `licensingInfo(...)` — 라이선서, 서명 시각, 만료, 계약 유형(`NonExclusive`, `Exclusive`, `Sole`), 라이선스 이름(예: SPDX 스타일 식별자), 라이선스 URI\n  - `royaltyRate(...)` — 수혜자와 비율(소수점 9자리, 1,000,000,000으로 나눔)\n- **Licensing**(`IERC5635Licensing`, 레지스트리에서는 선택). oNFT 보유자 또는 승인된 오퍼레이터가 `licence(...)`를 호출해 계약을 부여할 수 있게 합니다. oNFT 컨트랙트별 `approve`와 `setApprovalForAll`로 ERC-721의 승인 방식을 본뜹니다.\n\n사양은 수명 주기를 둘로 나눕니다. dNFT가 민팅되기 전의 **Licensing** 단계와 그 이후의 **Discovery** 단계이며, 후자에서는 마켓플레이스가 dNFT에서 자격을 읽어 레지스트리와 대조해 검증합니다.\n\n권리는 토큰을 따라갑니다. oNFT가 판매되면 새 소유자가 그 라이선스 계약의 수혜자가 됩니다.\n\n## 샘플 코드\n\n마켓플레이스가 등록된 NFT가 dNFT인지, 그 첫 번째 자격이 라이선스되었는지 확인하는 예:\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.20;\n\ninterface IERC165 { function supportsInterface(bytes4 id) external view returns (bool); }\n\ninterface IERC5635DNFT {\n    function numberOfCredentials(uint256 tokenId) external view returns (uint256);\n    function authorizedBy(uint256 tokenId, uint256 credentialId)\n        external view returns (address oNFT, uint256 oNFTId, address registry);\n}\n\ninterface IERC5635Registry {\n    function isLicensed(address dNFT, uint256 dNFTId, address oNFT, uint256 oNFTId)\n        external view returns (bool);\n}\n\ncontract LicenseCheck {\n    bytes4 constant DNFT_ID = 0xd584841c; // from the spec\n\n    function firstCredentialValid(address dnft, uint256 tokenId) external view returns (bool) {\n        if (!IERC165(dnft).supportsInterface(DNFT_ID)) return false;\n        if (IERC5635DNFT(dnft).numberOfCredentials(tokenId) == 0) return false;\n        (address o, uint256 oId, address reg) = IERC5635DNFT(dnft).authorizedBy(tokenId, 0);\n        return IERC5635Registry(reg).isLicensed(dnft, tokenId, o, oId);\n    }\n}\n```\n\n## 알아둘 점\n\n- **상태: Stagnant.** 제안은 진전되지 않았습니다. 사양 본문에는 아직 해결되지 않은 `TODO` 메모가 있고, Security Considerations 절에는 \"논의 필요\"라고만 적혀 있습니다.\n- [ERC-2981](/eip-2981/) 로열티와 마찬가지로 여기서도 온체인에서 강제되는 것은 없습니다. 마켓플레이스가 읽고 존중하기로 선택해야만 작동합니다.\n- 신뢰는 레지스트리에 있습니다. dNFT는 어떤 레지스트리든 가리킬 수 있으므로 소비자는 어떤 레지스트리를 신뢰할지 정해야 합니다.\n- 사양은 창작자가 보유자에게 주는 라이선스(\"Can't Be Evil\" 등)는 라이선서와 라이선시 간의 계약과 다르며 이를 대체할 수 없다고 말합니다.\n- 사양의 인터페이스 스니펫은 Solidity 0.6을 대상으로 하며 쓰인 그대로는 컴파일되지 않습니다(예: 함수 파라미터에 `indexed`). 스케치로 취급하세요.\n"},"zh":{"lang":"zh","tldr":"一个已停滞的提案：建立链上许可协议注册表，让市场可以检查衍生 NFT 是否确实获得了原 NFT 所有者的许可，以及谁应获得版税。","tags":["nft","licensing","royalties","derivatives","registry"],"related":[721,1155,2981,165],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-5635/","markdown":"## 它解决什么问题？\n\nNFT 经常被二次创作：有人取用现有 NFT 的艺术或特征，铸造新的\"衍生\"合集。链上没有任何信息告诉买家或市场，原持有者是否同意、条款如何，或者谁应该收取版税。\n\nERC-5635 提出一种通用方法来记录和查询这类许可协议。它把原 NFT 称为 **oNFT**（由*许可方*持有），把衍生品称为 **dNFT**（由*被许可方*持有）。许可协议表示许可方允许被许可方创建 dNFT，通常以版税作为交换。\n\n## 它如何运作\n\n该标准有三种角色和三个接口：\n\n- **dNFT 合约**（`IERC5635DNFT`，衍生品必需）。对每个代币，它公开 `numberOfCredentials(tokenId)` 和 `authorizedBy(tokenId, credentialId)`，后者返回 oNFT 合约、oNFT 的代币 id，以及能验证该凭证的**注册表**。\n- **注册表**（`IERC5635Registry`，必需）。一个可信合约，回答以下问题：\n  - `isLicensed(dNFT, dNFTId, oNFT, oNFTId)` — 是或否；\n  - `licensingInfo(...)` — 许可方、签署时间、到期时间、协议类型（`NonExclusive`、`Exclusive`、`Sole`）、许可名称（例如 SPDX 风格的标识符）和许可 URI；\n  - `royaltyRate(...)` — 受益人和费率，精度为 9 位小数（除以 1,000,000,000）。\n- **Licensing**（`IERC5635Licensing`，注册表上可选）。允许 oNFT 持有者或获批的操作者调用 `licence(...)` 来授予协议。它通过每个 oNFT 合约的 `approve` 和 `setApprovalForAll`，仿照了 ERC-721 的授权机制。\n\n规范把生命周期分为两个阶段：dNFT 铸造之前的 **Licensing** 阶段，以及之后的 **Discovery** 阶段，后者由市场从 dNFT 读取凭证，并对照注册表进行验证。\n\n权利跟随代币。oNFT 被出售时，新所有者成为其许可协议的受益人。\n\n## 示例代码\n\n市场检查某个上架的 NFT 是否为 dNFT，以及它的第一个凭证是否已获许可：\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.20;\n\ninterface IERC165 { function supportsInterface(bytes4 id) external view returns (bool); }\n\ninterface IERC5635DNFT {\n    function numberOfCredentials(uint256 tokenId) external view returns (uint256);\n    function authorizedBy(uint256 tokenId, uint256 credentialId)\n        external view returns (address oNFT, uint256 oNFTId, address registry);\n}\n\ninterface IERC5635Registry {\n    function isLicensed(address dNFT, uint256 dNFTId, address oNFT, uint256 oNFTId)\n        external view returns (bool);\n}\n\ncontract LicenseCheck {\n    bytes4 constant DNFT_ID = 0xd584841c; // from the spec\n\n    function firstCredentialValid(address dnft, uint256 tokenId) external view returns (bool) {\n        if (!IERC165(dnft).supportsInterface(DNFT_ID)) return false;\n        if (IERC5635DNFT(dnft).numberOfCredentials(tokenId) == 0) return false;\n        (address o, uint256 oId, address reg) = IERC5635DNFT(dnft).authorizedBy(tokenId, 0);\n        return IERC5635Registry(reg).isLicensed(dnft, tokenId, o, oId);\n    }\n}\n```\n\n## 需要注意\n\n- **状态：Stagnant。** 该提案没有进展。规范文本中仍有未解决的 `TODO` 备注，其 Security Considerations 部分只写着\"需要讨论\"。\n- 与 [ERC-2981](/eip-2981/) 版税一样，这里没有任何内容在链上强制执行。它只有在市场选择读取并遵守时才有效。\n- 信任落在注册表上。dNFT 可以指向任何注册表，因此使用方必须决定信任哪些注册表。\n- 规范指出，创作者对持有者的许可（例如\"Can't Be Evil\"）不同于许可方对被许可方的协议，也无法取代后者。\n- 规范中的接口片段面向 Solidity 0.6，按原样无法编译（例如对函数参数使用 `indexed`）。请把它们当作草图。\n"}}}
