{"eip":7484,"title":"Registry Extension for ERC-7579","description":"Adapters that allow modular smart accounts to verify the security of modules using a Module Registry","authors":["Konrad Kopp (@kopy-kat)","zeroknots (@zeroknots)"],"status":"Draft","type":"Standards Track","category":"ERC","created":"2023-08-14","requires":[7579],"discussionsTo":"https://ethereum-magicians.org/t/erc-7484-registry-adapters-for-smart-accounts/15434","repo":"ERCs","label":"ERC-7484","officialUrl":"https://eips.ethereum.org/EIPS/eip-7484","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-7484.md","url":"https://eips.huatuo.xyz/eip-7484/","tldr":{"en":"A standard Module Registry interface that lets ERC-7579 modular smart accounts check on-chain security attestations before installing or running third-party modules.","ja":"ERC-7579 のモジュール型スマートアカウントが、サードパーティのモジュールをインストールしたり実行したりする前に、オンチェーンのセキュリティ・アテステーションを確認できるようにする、標準の Module Registry インターフェース。","ko":"ERC-7579 모듈형 스마트 계정이 서드파티 모듈을 설치하거나 실행하기 전에 온체인 보안 증명(attestation)을 확인할 수 있게 하는 표준 Module Registry 인터페이스.","zh":"一个标准的模块注册表（Module Registry）接口，让 ERC-7579 模块化智能账户在安装或运行第三方模块之前，先检查链上的安全证明（attestation）。"},"tags":["account-abstraction","smart-accounts","modules","security","attestations"],"explainers":{"en":{"lang":"en","tldr":"A standard Module Registry interface that lets ERC-7579 modular smart accounts check on-chain security attestations before installing or running third-party modules.","tags":["account-abstraction","smart-accounts","modules","security","attestations"],"related":[7579,4337,6900],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7484/","markdown":"## What problem does it solve?\n\nModular smart accounts ([ERC-7579](/eip-7579/), built on [ERC-4337](/eip-4337/)) let anyone write plug-in modules: validators, executors, hooks and so on. That openness is also a risk: a malicious or buggy module installed into your account can drain it, and most properties that matter (for example, \"this module only writes to its own storage\") cannot be verified on-chain.\n\nERC-7484 proposes a **Module Registry** where auditors and other parties publish **attestations** about modules, plus a standard **Adapter** behaviour so accounts query that registry before trusting a module. Accounts can then rely on whatever set of attesters they choose, using one interface regardless of account architecture.\n\n## How it works\n\nRoles:\n\n- **Attester**: an entity (auditor, team, DAO) that makes an on-chain statement about a module.\n- **Registry**: stores attestations (or references to them). It must verify the attester created each attestation and let attesters revoke them. It should support expiry.\n- **Adapter**: logic in the account (native or as a module) that queries the registry.\n\nThe core registry calls are `check` functions that simply **revert** when a module is not trusted:\n\n- `check(module)` / `checkForAccount(account, module)` use the attesters and threshold the account stored earlier via `trustAttesters(threshold, attesters)`.\n- `check(module, attesters, threshold)` passes the attesters explicitly.\n- Variants with `moduleType` also verify the module was attested as that type (for example, a validator).\n\nA check must revert if fewer than `threshold` of the given attesters attested, if any of them revoked, or if the attester list is not unique and sorted.\n\nThe adapter must query the registry about a module at least once before or during the first transaction that calls it, and must treat a registry revert as a security risk. It should query on installation and on execution, and revert the flow on failure.\n\nThe spec also includes a reference ownerless **singleton** registry, arguing that one shared registry concentrates attestations, but accounts are not required to use it.\n\n## Sample code\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ninterface IERC7484 {\n    function check(address module) external view;\n    function check(address module, uint256 moduleType) external view;\n    function check(address module, address[] calldata attesters, uint256 threshold) external view;\n    function trustAttesters(uint8 threshold, address[] calldata attesters) external;\n}\n\nabstract contract RegistryAdapter {\n    IERC7484 public immutable registry;\n\n    constructor(IERC7484 _registry, address[] memory sortedAttesters, uint8 threshold) {\n        registry = _registry;\n        // stored per msg.sender, i.e. this account\n        _registry.trustAttesters(threshold, sortedAttesters);\n    }\n\n    function _installModule(address module, uint256 moduleType) internal {\n        registry.check(module, moduleType); // reverts if not attested\n        // ... install logic\n    }\n}\n```\n\n## Things to know\n\n- Status is **Draft**. Function signatures have changed during drafting and may change again.\n- Attester addresses must be passed unique and **sorted** ascending, or the registry reverts.\n- An attestation is only as good as the attester. Choosing who to trust, and with what threshold, is the real security decision.\n- A singleton registry is a single point of failure: if someone could attest on behalf of a trusted attester, many accounts would be affected at once. The spec discusses this trade-off.\n- [ERC-6900](/eip-6900/) is a separate, more opinionated modular account standard; ERC-7484 targets ERC-7579 accounts.\n"},"ja":{"lang":"ja","tldr":"ERC-7579 のモジュール型スマートアカウントが、サードパーティのモジュールをインストールしたり実行したりする前に、オンチェーンのセキュリティ・アテステーションを確認できるようにする、標準の Module Registry インターフェース。","tags":["account-abstraction","smart-accounts","modules","security","attestations"],"related":[7579,4337,6900],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7484/","markdown":"## 何を解決するのか\n\nモジュール型スマートアカウント（[ERC-4337](/eip-4337/) 上に構築された [ERC-7579](/eip-7579/)）では、誰でもバリデータ、エグゼキュータ、フックなどのプラグインモジュールを書けます。この開放性はリスクでもあります。アカウントにインストールされた悪意あるモジュールやバグのあるモジュールは、アカウントの資産を抜き取る可能性があり、重要な性質の多く（たとえば「このモジュールは自分のストレージにしか書き込まない」）はオンチェーンで検証できません。\n\nERC-7484 は、監査人などが、モジュールについての**アテステーション**を公開する **Module Registry** と、アカウントがモジュールを信頼する前にそのレジストリに問い合わせるための標準的な**アダプター**の振る舞いを提案します。これによりアカウントは、アカウントのアーキテクチャによらず 1 つのインターフェースで、自分が選んだアテスターの集合を信頼できます。\n\n## 仕組み\n\n役割:\n\n- **アテスター（Attester）**: モジュールについてオンチェーンで表明を行う主体（監査人、チーム、DAO）。\n- **レジストリ（Registry）**: アテステーション（またはその参照）を保存します。各アテステーションをアテスターが作成したことを検証し、アテスターが取り消せるようにしなければなりません。有効期限にも対応すべきです。\n- **アダプター（Adapter）**: レジストリに問い合わせる、アカウント内のロジック（ネイティブ、またはモジュールとして）。\n\nレジストリの中心となる呼び出しは `check` 関数で、モジュールが信頼されていないと単に **revert** します。\n\n- `check(module)` / `checkForAccount(account, module)` は、アカウントが先に `trustAttesters(threshold, attesters)` で保存したアテスターと閾値を使います。\n- `check(module, attesters, threshold)` は、アテスターを明示的に渡します。\n- `moduleType` を伴うバリアントは、そのモジュールがその種類（たとえばバリデータ）としてアテストされたことも検証します。\n\n指定されたアテスターのうちアテステーションしたのが `threshold` 未満の場合、いずれかが取り消した場合、またはアテスターのリストが一意でソートされていない場合、チェックは revert しなければなりません。\n\nアダプターは、モジュールを呼び出す最初のトランザクションの前、またはその最中に、少なくとも 1 回はそのモジュールについてレジストリに問い合わせなければならず、レジストリの revert をセキュリティ上のリスクとして扱わなければなりません。インストール時と実行時に問い合わせ、失敗した場合はフローを revert すべきです。\n\n仕様には、オーナーのいない**シングルトン**のレジストリのリファレンス実装も含まれています。共有レジストリが 1 つあればアテステーションが集中すると主張していますが、アカウントがそれを使うことは必須ではありません。\n\n## サンプルコード\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ninterface IERC7484 {\n    function check(address module) external view;\n    function check(address module, uint256 moduleType) external view;\n    function check(address module, address[] calldata attesters, uint256 threshold) external view;\n    function trustAttesters(uint8 threshold, address[] calldata attesters) external;\n}\n\nabstract contract RegistryAdapter {\n    IERC7484 public immutable registry;\n\n    constructor(IERC7484 _registry, address[] memory sortedAttesters, uint8 threshold) {\n        registry = _registry;\n        // stored per msg.sender, i.e. this account\n        _registry.trustAttesters(threshold, sortedAttesters);\n    }\n\n    function _installModule(address module, uint256 moduleType) internal {\n        registry.check(module, moduleType); // reverts if not attested\n        // ... install logic\n    }\n}\n```\n\n## 知っておくべきこと\n\n- ステータスは **Draft** です。関数シグネチャはドラフト中に変更されており、再び変更される可能性があります。\n- アテスターのアドレスは、重複なく昇順に**ソート**して渡す必要があります。そうしないとレジストリは revert します。\n- アテステーションの価値はアテスターしだいです。誰をどの閾値で信頼するかが、本当のセキュリティ上の判断です。\n- シングルトンのレジストリは単一障害点です。信頼されたアテスターになりすましてアテストできる者がいれば、多くのアカウントが一度に影響を受けます。仕様はこのトレードオフを論じています。\n- [ERC-6900](/eip-6900/) は、より主張の強い別のモジュール型アカウント標準です。ERC-7484 は ERC-7579 アカウントを対象としています。\n"},"ko":{"lang":"ko","tldr":"ERC-7579 모듈형 스마트 계정이 서드파티 모듈을 설치하거나 실행하기 전에 온체인 보안 증명(attestation)을 확인할 수 있게 하는 표준 Module Registry 인터페이스.","tags":["account-abstraction","smart-accounts","modules","security","attestations"],"related":[7579,4337,6900],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7484/","markdown":"## 어떤 문제를 해결하나요?\n\n모듈형 스마트 계정([ERC-4337](/eip-4337/) 기반의 [ERC-7579](/eip-7579/))에서는 누구나 검증자, 실행자, 훅 같은 플러그인 모듈을 작성할 수 있습니다. 이 개방성은 위험이기도 합니다. 계정에 설치된 악성 또는 버그가 있는 모듈은 계정을 털어 갈 수 있고, 중요한 성질 대부분(예: \"이 모듈은 자신의 스토리지에만 쓴다\")은 온체인에서 검증할 수 없습니다.\n\nERC-7484는 감사자 등이 모듈에 대한 **증명(attestation)** 을 게시하는 **Module Registry** 와, 계정이 모듈을 신뢰하기 전에 그 레지스트리를 조회하도록 하는 표준 **어댑터(Adapter)** 동작을 제안합니다. 그러면 계정은 계정 아키텍처와 관계없이 하나의 인터페이스로, 자신이 고른 증명자 집합을 신뢰할 수 있습니다.\n\n## 어떻게 동작하나요?\n\n역할:\n\n- **증명자(Attester)**: 모듈에 대해 온체인으로 진술하는 주체(감사자, 팀, DAO).\n- **레지스트리(Registry)**: 증명(또는 증명에 대한 참조)을 저장합니다. 각 증명이 해당 증명자에 의해 만들어졌음을 검증해야 하고, 증명자가 이를 철회할 수 있게 해야 합니다. 만료를 지원하는 것이 좋습니다.\n- **어댑터(Adapter)**: 레지스트리를 조회하는 계정 내부의 로직(네이티브 또는 모듈 형태).\n\n레지스트리의 핵심 호출은 `check` 함수이며, 모듈이 신뢰되지 않으면 단순히 **revert**합니다.\n\n- `check(module)` / `checkForAccount(account, module)`은 계정이 앞서 `trustAttesters(threshold, attesters)`로 저장한 증명자와 임계값을 사용합니다.\n- `check(module, attesters, threshold)`는 증명자를 명시적으로 전달합니다.\n- `moduleType`이 있는 변형은 모듈이 해당 유형(예: 검증자)으로 증명되었는지도 검증합니다.\n\n주어진 증명자 중 증명한 수가 `threshold`보다 적거나, 그중 하나라도 철회했거나, 증명자 목록이 고유하지 않고 정렬되어 있지 않으면 검사는 반드시 revert해야 합니다.\n\n어댑터는 모듈을 호출하는 첫 트랜잭션 전이나 그 도중에 적어도 한 번은 그 모듈에 대해 레지스트리를 조회해야 하며, 레지스트리의 revert를 보안 위험으로 취급해야 합니다. 설치할 때와 실행할 때 조회하고, 실패하면 흐름을 revert하는 것이 좋습니다.\n\n명세에는 소유자가 없는 **싱글톤** 레지스트리의 레퍼런스 구현도 포함되어 있으며, 공유 레지스트리 하나가 있으면 증명이 한곳에 모인다고 주장하지만 계정이 이를 반드시 사용해야 하는 것은 아닙니다.\n\n## 샘플 코드\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ninterface IERC7484 {\n    function check(address module) external view;\n    function check(address module, uint256 moduleType) external view;\n    function check(address module, address[] calldata attesters, uint256 threshold) external view;\n    function trustAttesters(uint8 threshold, address[] calldata attesters) external;\n}\n\nabstract contract RegistryAdapter {\n    IERC7484 public immutable registry;\n\n    constructor(IERC7484 _registry, address[] memory sortedAttesters, uint8 threshold) {\n        registry = _registry;\n        // stored per msg.sender, i.e. this account\n        _registry.trustAttesters(threshold, sortedAttesters);\n    }\n\n    function _installModule(address module, uint256 moduleType) internal {\n        registry.check(module, moduleType); // reverts if not attested\n        // ... install logic\n    }\n}\n```\n\n## 알아둘 점\n\n- 상태는 **Draft**입니다. 함수 시그니처는 초안 단계에서 바뀌었고 다시 바뀔 수 있습니다.\n- 증명자 주소는 중복 없이 오름차순으로 **정렬**해 전달해야 하며, 그렇지 않으면 레지스트리가 revert합니다.\n- 증명의 가치는 증명자에 달려 있습니다. 누구를 어떤 임계값으로 신뢰할지가 진짜 보안 결정입니다.\n- 싱글톤 레지스트리는 단일 장애 지점입니다. 누군가 신뢰받는 증명자를 대신해 증명할 수 있다면 많은 계정이 한꺼번에 영향을 받습니다. 명세는 이 트레이드오프를 다룹니다.\n- [ERC-6900](/eip-6900/)은 더 의견이 뚜렷한 별도의 모듈형 계정 표준이며, ERC-7484는 ERC-7579 계정을 대상으로 합니다.\n"},"zh":{"lang":"zh","tldr":"一个标准的模块注册表（Module Registry）接口，让 ERC-7579 模块化智能账户在安装或运行第三方模块之前，先检查链上的安全证明（attestation）。","tags":["account-abstraction","smart-accounts","modules","security","attestations"],"related":[7579,4337,6900],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7484/","markdown":"## 它解决什么问题？\n\n模块化智能账户（基于 [ERC-4337](/eip-4337/) 的 [ERC-7579](/eip-7579/)）允许任何人编写插件模块：验证器、执行器、钩子等。这种开放性也是一种风险：安装到你账户里的恶意或有漏洞的模块可能会掏空账户，而且大多数重要的性质（例如\"该模块只写入自己的存储\"）无法在链上验证。\n\nERC-7484 提出了一个 **Module Registry**，审计方等各方可以在其中发布关于模块的**证明（attestation）**，同时规定了标准的**适配器（Adapter）** 行为，让账户在信任某个模块之前先查询该注册表。这样，无论账户采用何种架构，都可以通过同一个接口，依赖自己选择的那一组证明方。\n\n## 它如何运作\n\n角色：\n\n- **证明方（Attester）**：对某个模块做出链上声明的实体（审计方、团队、DAO）。\n- **注册表（Registry）**：存储证明（或对证明的引用）。它必须验证每条证明确实由该证明方创建，并允许证明方撤销。它应当支持过期。\n- **适配器（Adapter）**：账户中查询注册表的逻辑（原生内置，或作为一个模块）。\n\n注册表的核心调用是 `check` 函数，当模块不被信任时它们会直接 **revert**：\n\n- `check(module)` / `checkForAccount(account, module)` 使用账户之前通过 `trustAttesters(threshold, attesters)` 存储的证明方和阈值。\n- `check(module, attesters, threshold)` 显式传入证明方。\n- 带 `moduleType` 的变体还会验证该模块是否被证明为该类型（例如验证器）。\n\n如果给定证明方中做出证明的少于 `threshold` 个，如果其中任何一个撤销了证明，或者证明方列表不唯一且未排序，检查必须 revert。\n\n适配器必须在首次调用某个模块的交易之前或期间，至少向注册表查询一次该模块，并且必须把注册表的 revert 视为安全风险。它应当在安装时和执行时都进行查询，并在失败时 revert 整个流程。\n\n规范还包含一个无所有者的**单例**注册表参考实现，认为一个共享的注册表可以让证明集中起来，但账户并不必须使用它。\n\n## 示例代码\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ninterface IERC7484 {\n    function check(address module) external view;\n    function check(address module, uint256 moduleType) external view;\n    function check(address module, address[] calldata attesters, uint256 threshold) external view;\n    function trustAttesters(uint8 threshold, address[] calldata attesters) external;\n}\n\nabstract contract RegistryAdapter {\n    IERC7484 public immutable registry;\n\n    constructor(IERC7484 _registry, address[] memory sortedAttesters, uint8 threshold) {\n        registry = _registry;\n        // stored per msg.sender, i.e. this account\n        _registry.trustAttesters(threshold, sortedAttesters);\n    }\n\n    function _installModule(address module, uint256 moduleType) internal {\n        registry.check(module, moduleType); // reverts if not attested\n        // ... install logic\n    }\n}\n```\n\n## 需要注意\n\n- 状态为 **Draft**。函数签名在草案期间已经变化过，今后可能再次变化。\n- 证明方地址必须以唯一且按升序**排序**的方式传入，否则注册表会 revert。\n- 证明的价值取决于证明方。选择信任谁、设置多大的阈值，才是真正的安全决策。\n- 单例注册表是单点故障：如果有人能够冒充受信任的证明方做出证明，许多账户会同时受到影响。规范讨论了这一权衡。\n- [ERC-6900](/eip-6900/) 是另一个主张更强的模块化账户标准；ERC-7484 面向的是 ERC-7579 账户。\n"}}}
