{"eip":1388,"title":"Attestation Issuers Management List","authors":["Weiwu Zhang \u003ca@colourful.land\u003e","James Sangalli \u003cj.l.sangalli@gmail.com\u003e"],"status":"Stagnant","type":"Standards Track","category":"ERC","created":"2018-09-08","discussionsTo":"https://github.com/ethereum/EIPs/issues/1388","repo":"ERCs","label":"ERC-1388","officialUrl":"https://eips.ethereum.org/EIPS/eip-1388","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-1388.md","url":"https://eips.huatuo.xyz/eip-1388/","tldr":{"en":"A contract interface for publishing curated lists of trusted attestation issuers, so a dapp can trust a list instead of hard-coding every issuer itself.","ja":"信頼できる証明（attestation）発行者の厳選リストを公開するためのコントラクトインターフェース。dapp が、すべての発行者を自分でハードコードする代わりにリストを信頼できるようにする。","ko":"신뢰할 수 있는 증명(attestation) 발급자의 선별된 목록을 게시하기 위한 컨트랙트 인터페이스. dapp이 모든 발급자를 직접 하드코딩하는 대신 목록 하나를 신뢰할 수 있게 한다.","zh":"一个用于发布受信任证明（attestation）签发者精选名单的合约接口，使 dapp 可以信任一份名单，而不必自己硬编码每个签发者。"},"tags":["attestation","identity","trust","registry"],"explainers":{"en":{"lang":"en","tldr":"A contract interface for publishing curated lists of trusted attestation issuers, so a dapp can trust a list instead of hard-coding every issuer itself.","tags":["attestation","identity","trust","registry"],"related":[1386,1387],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-1388/","markdown":"## What problem does it solve?\n\nSome contracts need proof about a user, such as \"this person is a resident of New Zealand or Australia\". Many different bodies could vouch for that: a passport authority, a land title office, local police. A dapp cannot realistically decide on and maintain the full set of trustworthy issuers by itself.\n\nERC-1388 outsources that job to **managed lists**. Anyone can publish a list of attestation issuers; a contract chooses which list to trust and then accepts attestations from any issuer on it. Well-maintained lists would win adoption over time.\n\n## How it works\n\nA list is managed by one address (the manager), and for simplicity the manager's address is the list's id. Each list has:\n\n- `name` and `description`\n- `capacity`: an optional filter. If set, only attestations signed with a key that has that capacity are accepted.\n- `issuerContracts`: addresses of issuer **contracts** (not raw signing keys). Each issuer contract manages its own signing keys.\n- `expiry`\n\nFunctions in the draft:\n\n| Function | Purpose |\n| --- | --- |\n| `createList(list)` | Create a list owned by the caller |\n| `addIssuer(issuerContract)` | Manager adds an issuer to their list |\n| `removeIssuer(issuerContract, list)` | Manager removes an issuer |\n| `getIssuerCorrespondingToAttestationKey(listId, signingKey)` | Find which issuer on the list controls a given signing key |\n| `replaceListIndex(list, manager)` | Hand the list to a new manager key |\n\nA relying contract calls `getIssuerCorrespondingToAttestationKey` with the key that signed a user's attestation. The list contract asks each issuer contract whether that key is theirs and returns the first match.\n\n## Sample code\n\nAn illustrative interface and how a service might use it (the spec's draft uses a struct parameter; this sketch flattens it):\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ninterface IManagedIssuerList {\n    function addIssuer(address issuerContract) external;\n    function removeIssuer(address issuerContract) external returns (bool);\n    function getIssuerCorrespondingToAttestationKey(bytes32 listId, address signingKey)\n        external returns (address issuer);\n}\n\ncontract ResidencyGate {\n    IManagedIssuerList public immutable lists;\n    bytes32 public immutable trustedList;\n\n    constructor(IManagedIssuerList l, bytes32 listId) {\n        lists = l;\n        trustedList = listId;\n    }\n\n    function isTrustedSigner(address signingKey) public returns (bool) {\n        return lists.getIssuerCorrespondingToAttestationKey(trustedList, signingKey) != address(0);\n    }\n}\n```\n\n## Things to know\n\n- Status is **Stagnant**. The spec is a short draft with an incomplete interface (for example, struct parameters on public functions and a mix of list identifiers).\n- Using the manager's address as the list id means one key per list, and if the manager rotates keys the list id stays tied to the original address, as the spec itself notes.\n- The draft acknowledges an attack where one issuer claims another's key, deferring the mitigation to \"later design\".\n- It was proposed alongside [ERC-1386](/eip-1386/) (attestation management) and [ERC-1387](/eip-1387/) (Merkle-tree attestations), both also Stagnant.\n"},"ja":{"lang":"ja","tldr":"信頼できる証明（attestation）発行者の厳選リストを公開するためのコントラクトインターフェース。dapp が、すべての発行者を自分でハードコードする代わりにリストを信頼できるようにする。","tags":["attestation","identity","trust","registry"],"related":[1386,1387],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-1388/","markdown":"## 何を解決するのか\n\nコントラクトによっては、ユーザーに関する証明が必要になります。たとえば「この人はニュージーランドまたはオーストラリアの居住者である」といったものです。これを保証できる機関は、パスポート発行当局、土地登記所、地元の警察など数多くあります。dapp が信頼できる発行者の全体集合を自分で決めて維持するのは現実的ではありません。\n\nERC-1388 はその仕事を**管理リスト**に外注します。誰でも証明発行者のリストを公開でき、コントラクトはどのリストを信頼するかを選び、そのリスト上の任意の発行者からの証明を受け入れます。よく管理されたリストが、時間とともに採用を勝ち取っていくと考えられます。\n\n## 仕組み\n\nリストは 1 つのアドレス（マネージャー）によって管理され、簡単のためマネージャーのアドレスがそのままリストの id になります。各リストには次の項目があります。\n\n- `name` と `description`\n- `capacity`: 任意のフィルター。設定されている場合、その capacity を持つ鍵で署名された証明のみが受け入れられます。\n- `issuerContracts`: 発行者**コントラクト**のアドレス（生の署名鍵ではありません）。各発行者コントラクトが自分の署名鍵を管理します。\n- `expiry`\n\nドラフトにある関数:\n\n| 関数 | 役割 |\n| --- | --- |\n| `createList(list)` | 呼び出し元が所有するリストを作成する |\n| `addIssuer(issuerContract)` | マネージャーが自分のリストに発行者を追加する |\n| `removeIssuer(issuerContract, list)` | マネージャーが発行者を削除する |\n| `getIssuerCorrespondingToAttestationKey(listId, signingKey)` | 指定された署名鍵を、リスト上のどの発行者が管理しているかを調べる |\n| `replaceListIndex(list, manager)` | リストを新しいマネージャーの鍵に引き渡す |\n\n利用側のコントラクトは、ユーザーの証明に署名した鍵を使って `getIssuerCorrespondingToAttestationKey` を呼びます。リストコントラクトは、その鍵が自分のものかを各発行者コントラクトに尋ね、最初に一致したものを返します。\n\n## サンプルコード\n\n説明用のインターフェースと、サービスがそれをどう使うかの例（仕様のドラフトは構造体引数を使っていますが、このスケッチでは平坦化しています）:\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ninterface IManagedIssuerList {\n    function addIssuer(address issuerContract) external;\n    function removeIssuer(address issuerContract) external returns (bool);\n    function getIssuerCorrespondingToAttestationKey(bytes32 listId, address signingKey)\n        external returns (address issuer);\n}\n\ncontract ResidencyGate {\n    IManagedIssuerList public immutable lists;\n    bytes32 public immutable trustedList;\n\n    constructor(IManagedIssuerList l, bytes32 listId) {\n        lists = l;\n        trustedList = listId;\n    }\n\n    function isTrustedSigner(address signingKey) public returns (bool) {\n        return lists.getIssuerCorrespondingToAttestationKey(trustedList, signingKey) != address(0);\n    }\n}\n```\n\n## 知っておくべきこと\n\n- ステータスは **Stagnant** です。仕様は短いドラフトで、インターフェースが未完成です（たとえば public 関数の構造体引数や、リスト識別子の混在など）。\n- マネージャーのアドレスをリスト id に使うということは、リスト 1 つにつき鍵が 1 つということであり、マネージャーが鍵をローテーションしても、仕様自身が述べているように、リスト id は元のアドレスに結び付いたままです。\n- ドラフトは、ある発行者が別の発行者の鍵を自分のものだと主張する攻撃を認めており、その対策は「後の設計」に先送りしています。\n- これは [ERC-1386](/eip-1386/)（証明の管理）および [ERC-1387](/eip-1387/)（Merkle ツリーによる証明）とともに提案されており、どちらも Stagnant です。\n"},"ko":{"lang":"ko","tldr":"신뢰할 수 있는 증명(attestation) 발급자의 선별된 목록을 게시하기 위한 컨트랙트 인터페이스. dapp이 모든 발급자를 직접 하드코딩하는 대신 목록 하나를 신뢰할 수 있게 한다.","tags":["attestation","identity","trust","registry"],"related":[1386,1387],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-1388/","markdown":"## 어떤 문제를 해결하나요?\n\n일부 컨트랙트는 사용자에 대한 증명이 필요합니다. 예를 들어 \"이 사람은 뉴질랜드 또는 호주 거주자다\" 같은 것입니다. 이를 보증할 수 있는 기관은 여권 발급 당국, 토지 등기소, 지역 경찰 등 다양합니다. dapp이 신뢰할 수 있는 발급자 전체 집합을 스스로 정하고 유지하기는 현실적으로 어렵습니다.\n\nERC-1388은 그 일을 **관리 목록**에 맡깁니다. 누구나 증명 발급자 목록을 게시할 수 있고, 컨트랙트는 어떤 목록을 신뢰할지 고른 뒤 그 목록에 있는 어떤 발급자의 증명이든 받아들입니다. 잘 관리되는 목록이 시간이 지나면서 채택을 얻게 될 것입니다.\n\n## 어떻게 동작하나요?\n\n목록은 하나의 주소(매니저)가 관리하며, 단순화를 위해 매니저의 주소가 곧 목록의 id입니다. 각 목록에는 다음이 있습니다.\n\n- `name`과 `description`\n- `capacity`: 선택적 필터. 설정하면 해당 capacity를 가진 키로 서명된 증명만 받아들입니다.\n- `issuerContracts`: 발급자 **컨트랙트**의 주소(서명 키 자체가 아님). 각 발급자 컨트랙트가 자신의 서명 키를 관리합니다.\n- `expiry`\n\n초안의 함수:\n\n| 함수 | 역할 |\n| --- | --- |\n| `createList(list)` | 호출자가 소유하는 목록을 생성 |\n| `addIssuer(issuerContract)` | 매니저가 자기 목록에 발급자를 추가 |\n| `removeIssuer(issuerContract, list)` | 매니저가 발급자를 제거 |\n| `getIssuerCorrespondingToAttestationKey(listId, signingKey)` | 목록의 어느 발급자가 특정 서명 키를 관리하는지 찾기 |\n| `replaceListIndex(list, manager)` | 목록을 새 매니저 키에 넘기기 |\n\n이를 이용하는 컨트랙트는 사용자의 증명에 서명한 키로 `getIssuerCorrespondingToAttestationKey`를 호출합니다. 목록 컨트랙트는 각 발급자 컨트랙트에 그 키가 자기 것인지 물어보고 처음 일치하는 것을 반환합니다.\n\n## 샘플 코드\n\n설명용 인터페이스와 서비스가 이를 사용하는 방법(명세 초안은 구조체 매개변수를 쓰지만 이 스케치에서는 평탄화했습니다):\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ninterface IManagedIssuerList {\n    function addIssuer(address issuerContract) external;\n    function removeIssuer(address issuerContract) external returns (bool);\n    function getIssuerCorrespondingToAttestationKey(bytes32 listId, address signingKey)\n        external returns (address issuer);\n}\n\ncontract ResidencyGate {\n    IManagedIssuerList public immutable lists;\n    bytes32 public immutable trustedList;\n\n    constructor(IManagedIssuerList l, bytes32 listId) {\n        lists = l;\n        trustedList = listId;\n    }\n\n    function isTrustedSigner(address signingKey) public returns (bool) {\n        return lists.getIssuerCorrespondingToAttestationKey(trustedList, signingKey) != address(0);\n    }\n}\n```\n\n## 알아둘 점\n\n- 상태는 **Stagnant**입니다. 명세는 짧은 초안이며 인터페이스가 미완성입니다(예: public 함수의 구조체 매개변수, 혼재된 목록 식별자).\n- 매니저의 주소를 목록 id로 쓰면 목록당 키가 하나뿐이며, 매니저가 키를 교체해도 명세 스스로 밝히듯 목록 id는 원래 주소에 묶여 있습니다.\n- 초안은 한 발급자가 다른 발급자의 키를 자기 것이라고 주장하는 공격을 인정하며, 그 완화책은 \"이후 설계\"로 미룹니다.\n- 이는 [ERC-1386](/eip-1386/)(증명 관리) 및 [ERC-1387](/eip-1387/)(머클 트리 증명)과 함께 제안되었으며, 둘 다 Stagnant입니다.\n"},"zh":{"lang":"zh","tldr":"一个用于发布受信任证明（attestation）签发者精选名单的合约接口，使 dapp 可以信任一份名单，而不必自己硬编码每个签发者。","tags":["attestation","identity","trust","registry"],"related":[1386,1387],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-1388/","markdown":"## 它解决什么问题？\n\n有些合约需要关于用户的证明，比如\"此人是新西兰或澳大利亚的居民\"。许多不同的机构都能为此担保：护照管理机关、土地登记处、当地警方。dapp 不可能现实地自己决定并维护完整的可信签发者集合。\n\nERC-1388 把这项工作外包给**托管名单**。任何人都可以发布一份证明签发者名单；合约选择信任哪份名单，然后接受该名单上任何签发者出具的证明。维护良好的名单会随着时间赢得采用。\n\n## 它如何运作\n\n名单由一个地址（管理者）管理，为简单起见，管理者的地址就是名单的 id。每份名单包含：\n\n- `name` 和 `description`\n- `capacity`：可选的过滤条件。如果设置，只接受用具有该 capacity 的密钥签名的证明。\n- `issuerContracts`：签发者**合约**的地址（而不是原始签名密钥）。每个签发者合约管理自己的签名密钥。\n- `expiry`\n\n草案中的函数：\n\n| 函数 | 用途 |\n| --- | --- |\n| `createList(list)` | 创建一份归调用者所有的名单 |\n| `addIssuer(issuerContract)` | 管理者向自己的名单添加一个签发者 |\n| `removeIssuer(issuerContract, list)` | 管理者移除一个签发者 |\n| `getIssuerCorrespondingToAttestationKey(listId, signingKey)` | 查出名单中哪个签发者控制某个签名密钥 |\n| `replaceListIndex(list, manager)` | 把名单移交给新的管理者密钥 |\n\n依赖方合约用为用户的证明签名的密钥调用 `getIssuerCorrespondingToAttestationKey`。名单合约会询问每个签发者合约该密钥是否属于它，并返回第一个匹配项。\n\n## 示例代码\n\n一个示意性的接口，以及某个服务可能如何使用它（规范草案使用结构体参数；这个草图将其展平）：\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ninterface IManagedIssuerList {\n    function addIssuer(address issuerContract) external;\n    function removeIssuer(address issuerContract) external returns (bool);\n    function getIssuerCorrespondingToAttestationKey(bytes32 listId, address signingKey)\n        external returns (address issuer);\n}\n\ncontract ResidencyGate {\n    IManagedIssuerList public immutable lists;\n    bytes32 public immutable trustedList;\n\n    constructor(IManagedIssuerList l, bytes32 listId) {\n        lists = l;\n        trustedList = listId;\n    }\n\n    function isTrustedSigner(address signingKey) public returns (bool) {\n        return lists.getIssuerCorrespondingToAttestationKey(trustedList, signingKey) != address(0);\n    }\n}\n```\n\n## 需要注意\n\n- 状态是 **Stagnant**。该规范只是一份简短的草案，接口并不完整（例如 public 函数上的结构体参数，以及混用的名单标识符）。\n- 把管理者的地址用作名单 id，意味着每份名单只有一个密钥；如果管理者轮换密钥，名单 id 仍然绑定在原来的地址上，规范本身也指出了这一点。\n- 草案承认存在一种攻击：某个签发者声称拥有另一个签发者的密钥，并把缓解办法推迟到\"以后的设计\"。\n- 它与 [ERC-1386](/eip-1386/)（证明管理）和 [ERC-1387](/eip-1387/)（Merkle 树证明）一同提出，这两者同样处于 Stagnant 状态。\n"}}}
