{"eip":2680,"title":"Ethereum 2 wallet layout","description":"A standard layout and naming format for walletstore and keystore for both hierarchical (e.g. filesystem, Amazon S3) and non-hierarchical (key/value) storage systems.","authors":["Jim McDonald \u003cJim@mcdee.net\u003e"],"status":"Stagnant","type":"Standards Track","category":"ERC","created":"2020-05-29","discussionsTo":"https://ethereum-magicians.org/t/eip-2680-ethereum-2-wallet-layout/4323","repo":"ERCs","label":"ERC-2680","officialUrl":"https://eips.ethereum.org/EIPS/eip-2680","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-2680.md","url":"https://eips.huatuo.xyz/eip-2680/","tldr":{"en":"Proposed a standard on-disk (and key/value store) layout for Ethereum 2 validator wallets and keystores, so different validator clients could share the same key files.","ja":"Ethereum 2 バリデーターのウォレットとキーストア向けに、標準的なディスク上（およびキー・バリューストア）のレイアウトを提案し、異なるバリデータークライアントが同じキーファイルを共有できるようにしようとした。","ko":"이더리움 2 검증자 지갑과 키스토어를 위한 표준 디스크(및 키/값 저장소) 레이아웃을 제안해, 서로 다른 검증자 클라이언트가 같은 키 파일을 공유할 수 있게 하려 했다.","zh":"提议为以太坊 2 验证者钱包和密钥库制定标准的磁盘（及键值存储）布局，使不同的验证者客户端可以共享同一批密钥文件。"},"tags":["wallet","keystore","validator","consensus","storage"],"explainers":{"en":{"lang":"en","tldr":"Proposed a standard on-disk (and key/value store) layout for Ethereum 2 validator wallets and keystores, so different validator clients could share the same key files.","tags":["wallet","keystore","validator","consensus","storage"],"related":[2335,2386,2334],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-2680/","markdown":"## What problem does it solve?\n\nWhen a staker switches validator software, their keys have to come along. If every client stores wallets and keystores in its own folder structure, the user ends up copying key files around by hand, which risks either losing a key or, worse, running the same key in two places at once.\n\nERC-2680 proposed one standard layout so different software could find and use the same wallets in place. It covers both hierarchical stores (filesystems, Amazon S3) and flat key/value stores.\n\n## How it works\n\nA wallet is described by four elements:\n\n1. **Base location.** On filesystems, a fixed per-OS path:\n   - Windows: `%APPDATA%\\ethereum2\\wallets`\n   - macOS: `${HOME}/Library/Application Support/ethereum2/wallets`\n   - Linux: `${HOME}/.config/ethereum2/wallets`\n\n   For other hierarchical stores, it is the lowercase hex SHA-256 of `\"Ethereum 2 wallet:\" + \u003cstore identifier\u003e`. Flat stores have no base location.\n2. **Wallet container**, named after the wallet's UUID (RFC 4122 format).\n3. **Walletstore**, a file inside the container, also named after the wallet's UUID (the wallet metadata, as in [EIP-2386](/eip-2386/)).\n4. **Keystores**, one per key, each named after the key's UUID (the encrypted key format of [EIP-2335](/eip-2335/)).\n\nIn flat stores, the container and item names are joined with `:` instead of nesting.\n\nAn optional `index` file, either at the base location (listing wallets) or inside a wallet container (listing accounts), is a JSON array of `{ \"uuid\", \"name\" }` objects. Public keys must not be stored in the index.\n\n## Sample code\n\nFilesystem layout on Linux for one wallet holding two keys:\n\n```text\n~/.config/ethereum2/wallets/\n└── 1f031fff-c51d-44fc-8baf-d6b304cb70a7/          # wallet container\n    ├── 1f031fff-c51d-44fc-8baf-d6b304cb70a7       # walletstore\n    ├── 1302106c-8441-4e2e-b687-6c77f49fc624       # keystore\n    ├── 4a320100-83fd-4db7-8126-6d6d205ba834       # keystore\n    └── index                                      # optional\n```\n\nThe same wallet in a key/value store:\n\n```text\n1f031fff-c51d-44fc-8baf-d6b304cb70a7:1f031fff-c51d-44fc-8baf-d6b304cb70a7\n1f031fff-c51d-44fc-8baf-d6b304cb70a7:1302106c-8441-4e2e-b687-6c77f49fc624\n1f031fff-c51d-44fc-8baf-d6b304cb70a7:4a320100-83fd-4db7-8126-6d6d205ba834\n```\n\nAn `index` file:\n\n```json\n[\n  { \"uuid\": \"1302106c-8441-4e2e-b687-6c77f49fc624\", \"name\": \"validator-1\" },\n  { \"uuid\": \"4a320100-83fd-4db7-8126-6d6d205ba834\", \"name\": \"validator-2\" }\n]\n```\n\n## Things to know\n\n- **Status: Stagnant.** In practice, validator clients did not converge on this layout; the [EIP-2335](/eip-2335/) keystore JSON file is the format that is commonly shared between clients.\n- The section on protecting against concurrent writes is left as \"TBD\" in the spec. Two clients using the same keys at once is exactly how validators get slashed, so a shared layout does not by itself make running multiple clients safe.\n- Files and objects are named by UUID so that names leak nothing about the keys. Implementations should also make sure permissions keep the files readable only by the owning user.\n"},"ja":{"lang":"ja","tldr":"Ethereum 2 バリデーターのウォレットとキーストア向けに、標準的なディスク上（およびキー・バリューストア）のレイアウトを提案し、異なるバリデータークライアントが同じキーファイルを共有できるようにしようとした。","tags":["wallet","keystore","validator","consensus","storage"],"related":[2335,2386,2334],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-2680/","markdown":"## 何を解決するのか\n\nステーカーがバリデーターソフトウェアを切り替えるとき、キーも一緒に移す必要があります。クライアントごとに独自のフォルダー構造でウォレットとキーストアを保存していると、ユーザーはキーファイルを手作業でコピーすることになり、キーを失うか、さらに悪いことに同じキーを 2 か所で同時に動かしてしまう危険があります。\n\nERC-2680 は、異なるソフトウェアが同じウォレットをその場で見つけて使えるよう、標準レイアウトを 1 つ提案しました。階層型ストア（ファイルシステム、Amazon S3）とフラットなキー・バリューストアの両方を対象にしています。\n\n## 仕組み\n\nウォレットは 4 つの要素で記述されます。\n\n1. **ベースロケーション。** ファイルシステムでは、OS ごとに固定のパスです。\n   - Windows: `%APPDATA%\\ethereum2\\wallets`\n   - macOS: `${HOME}/Library/Application Support/ethereum2/wallets`\n   - Linux: `${HOME}/.config/ethereum2/wallets`\n\n   その他の階層型ストアでは、`\"Ethereum 2 wallet:\" + \u003cstore identifier\u003e` の小文字 16 進の SHA-256 です。フラットなストアにはベースロケーションがありません。\n2. **ウォレットコンテナ**。ウォレットの UUID（RFC 4122 形式）にちなんで名付けられます。\n3. **ウォレットストア**。コンテナ内のファイルで、これもウォレットの UUID にちなんで名付けられます（[EIP-2386](/eip-2386/) のウォレットメタデータ）。\n4. **キーストア**。キーごとに 1 つで、それぞれキーの UUID にちなんで名付けられます（[EIP-2335](/eip-2335/) の暗号化キー形式）。\n\nフラットなストアでは、コンテナ名とアイテム名は入れ子にせず `:` で連結します。\n\n任意の `index` ファイルは、ベースロケーション（ウォレット一覧）またはウォレットコンテナ内（アカウント一覧）に置かれ、`{ \"uuid\", \"name\" }` オブジェクトの JSON 配列です。公開鍵を index に保存してはなりません。\n\n## サンプルコード\n\n2 つのキーを持つ 1 つのウォレットの Linux 上のファイルシステムレイアウト:\n\n```text\n~/.config/ethereum2/wallets/\n└── 1f031fff-c51d-44fc-8baf-d6b304cb70a7/          # wallet container\n    ├── 1f031fff-c51d-44fc-8baf-d6b304cb70a7       # walletstore\n    ├── 1302106c-8441-4e2e-b687-6c77f49fc624       # keystore\n    ├── 4a320100-83fd-4db7-8126-6d6d205ba834       # keystore\n    └── index                                      # optional\n```\n\n同じウォレットをキー・バリューストアに置いた場合:\n\n```text\n1f031fff-c51d-44fc-8baf-d6b304cb70a7:1f031fff-c51d-44fc-8baf-d6b304cb70a7\n1f031fff-c51d-44fc-8baf-d6b304cb70a7:1302106c-8441-4e2e-b687-6c77f49fc624\n1f031fff-c51d-44fc-8baf-d6b304cb70a7:4a320100-83fd-4db7-8126-6d6d205ba834\n```\n\n`index` ファイル:\n\n```json\n[\n  { \"uuid\": \"1302106c-8441-4e2e-b687-6c77f49fc624\", \"name\": \"validator-1\" },\n  { \"uuid\": \"4a320100-83fd-4db7-8126-6d6d205ba834\", \"name\": \"validator-2\" }\n]\n```\n\n## 知っておくべきこと\n\n- **ステータス: Stagnant。** 実際には、バリデータークライアントはこのレイアウトに収束しませんでした。クライアント間で一般的に共有されているのは、[EIP-2335](/eip-2335/) のキーストア JSON ファイルの形式です。\n- 同時書き込みからの保護に関する節は、仕様では「TBD」のままです。2 つのクライアントが同時に同じキーを使うことこそ、バリデーターがスラッシングされる原因なので、共有レイアウトがあるだけでは複数クライアントの運用は安全になりません。\n- ファイルとオブジェクトは UUID で命名され、名前からキーについて何も漏れないようになっています。実装では、パーミッションによってファイルを所有ユーザーだけが読めるようにすることも確認すべきです。\n"},"ko":{"lang":"ko","tldr":"이더리움 2 검증자 지갑과 키스토어를 위한 표준 디스크(및 키/값 저장소) 레이아웃을 제안해, 서로 다른 검증자 클라이언트가 같은 키 파일을 공유할 수 있게 하려 했다.","tags":["wallet","keystore","validator","consensus","storage"],"related":[2335,2386,2334],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-2680/","markdown":"## 어떤 문제를 해결하나요?\n\n스테이커가 검증자 소프트웨어를 바꾸면 키도 함께 옮겨야 합니다. 클라이언트마다 자기만의 폴더 구조로 지갑과 키스토어를 저장하면, 사용자는 키 파일을 손으로 복사하게 되고 키를 잃어버리거나, 더 나쁘게는 같은 키를 두 곳에서 동시에 돌리게 될 위험이 있습니다.\n\nERC-2680은 서로 다른 소프트웨어가 같은 지갑을 그 자리에서 찾아 쓸 수 있도록 표준 레이아웃 하나를 제안했습니다. 계층형 저장소(파일시스템, Amazon S3)와 평면 키/값 저장소를 모두 다룹니다.\n\n## 어떻게 동작하나요?\n\n지갑은 네 가지 요소로 기술됩니다.\n\n1. **기본 위치.** 파일시스템에서는 OS별로 고정된 경로입니다.\n   - Windows: `%APPDATA%\\ethereum2\\wallets`\n   - macOS: `${HOME}/Library/Application Support/ethereum2/wallets`\n   - Linux: `${HOME}/.config/ethereum2/wallets`\n\n   다른 계층형 저장소에서는 `\"Ethereum 2 wallet:\" + \u003cstore identifier\u003e`의 소문자 16진수 SHA-256입니다. 평면 저장소에는 기본 위치가 없습니다.\n2. **지갑 컨테이너**. 지갑의 UUID(RFC 4122 형식)를 이름으로 씁니다.\n3. **월렛스토어(walletstore)**. 컨테이너 안의 파일이며 역시 지갑의 UUID를 이름으로 씁니다([EIP-2386](/eip-2386/)의 지갑 메타데이터).\n4. **키스토어**. 키마다 하나씩 있으며 각각 키의 UUID를 이름으로 씁니다([EIP-2335](/eip-2335/)의 암호화된 키 형식).\n\n평면 저장소에서는 컨테이너 이름과 항목 이름을 중첩하는 대신 `:`로 연결합니다.\n\n선택적인 `index` 파일은 기본 위치(지갑 목록) 또는 지갑 컨테이너 안(계정 목록)에 두며, `{ \"uuid\", \"name\" }` 객체의 JSON 배열입니다. 공개 키를 index에 저장해서는 안 됩니다.\n\n## 샘플 코드\n\n키 두 개를 가진 지갑 하나의 Linux 파일시스템 레이아웃:\n\n```text\n~/.config/ethereum2/wallets/\n└── 1f031fff-c51d-44fc-8baf-d6b304cb70a7/          # wallet container\n    ├── 1f031fff-c51d-44fc-8baf-d6b304cb70a7       # walletstore\n    ├── 1302106c-8441-4e2e-b687-6c77f49fc624       # keystore\n    ├── 4a320100-83fd-4db7-8126-6d6d205ba834       # keystore\n    └── index                                      # optional\n```\n\n같은 지갑을 키/값 저장소에 둔 모습:\n\n```text\n1f031fff-c51d-44fc-8baf-d6b304cb70a7:1f031fff-c51d-44fc-8baf-d6b304cb70a7\n1f031fff-c51d-44fc-8baf-d6b304cb70a7:1302106c-8441-4e2e-b687-6c77f49fc624\n1f031fff-c51d-44fc-8baf-d6b304cb70a7:4a320100-83fd-4db7-8126-6d6d205ba834\n```\n\n`index` 파일:\n\n```json\n[\n  { \"uuid\": \"1302106c-8441-4e2e-b687-6c77f49fc624\", \"name\": \"validator-1\" },\n  { \"uuid\": \"4a320100-83fd-4db7-8126-6d6d205ba834\", \"name\": \"validator-2\" }\n]\n```\n\n## 알아둘 점\n\n- **상태: Stagnant.** 실제로는 검증자 클라이언트들이 이 레이아웃으로 수렴하지 않았습니다. 클라이언트 간에 흔히 공유되는 형식은 [EIP-2335](/eip-2335/)의 키스토어 JSON 파일입니다.\n- 동시 쓰기 방지에 관한 절은 스펙에서 \"TBD\"로 남아 있습니다. 두 클라이언트가 같은 키를 동시에 쓰는 것이 바로 검증자가 슬래싱당하는 방식이므로, 공유 레이아웃만으로 여러 클라이언트를 돌리는 것이 안전해지지는 않습니다.\n- 이름이 키에 대해 아무것도 드러내지 않도록 파일과 객체는 UUID로 이름을 붙입니다. 구현은 권한 설정으로 파일을 소유 사용자만 읽을 수 있게 하는지도 확인해야 합니다.\n"},"zh":{"lang":"zh","tldr":"提议为以太坊 2 验证者钱包和密钥库制定标准的磁盘（及键值存储）布局，使不同的验证者客户端可以共享同一批密钥文件。","tags":["wallet","keystore","validator","consensus","storage"],"related":[2335,2386,2334],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-2680/","markdown":"## 它解决什么问题？\n\n质押者更换验证者软件时，密钥也必须一起迁移。如果每个客户端都用自己的文件夹结构存放钱包和密钥库，用户最终只能手动复制密钥文件，这有丢失密钥的风险，更糟的是可能在两个地方同时运行同一个密钥。\n\nERC-2680 提出了一种标准布局，让不同软件可以原地找到并使用同样的钱包。它既涵盖层级存储（文件系统、Amazon S3），也涵盖扁平的键值存储。\n\n## 它如何运作\n\n钱包由四个要素描述：\n\n1. **基础位置。** 在文件系统上，是每种操作系统固定的路径：\n   - Windows：`%APPDATA%\\ethereum2\\wallets`\n   - macOS：`${HOME}/Library/Application Support/ethereum2/wallets`\n   - Linux：`${HOME}/.config/ethereum2/wallets`\n\n   对于其他层级存储，它是 `\"Ethereum 2 wallet:\" + \u003cstore identifier\u003e` 的小写十六进制 SHA-256。扁平存储没有基础位置。\n2. **钱包容器**，以钱包的 UUID（RFC 4122 格式）命名。\n3. **Walletstore**，容器内的一个文件，同样以钱包的 UUID 命名（即钱包元数据，见 [EIP-2386](/eip-2386/)）。\n4. **Keystore**，每个密钥一个，各自以该密钥的 UUID 命名（[EIP-2335](/eip-2335/) 的加密密钥格式）。\n\n在扁平存储中，容器名和条目名用 `:` 连接，而不是嵌套。\n\n可选的 `index` 文件，位于基础位置（列出钱包）或钱包容器内（列出账户），是 `{ \"uuid\", \"name\" }` 对象的 JSON 数组。公钥不得存放在 index 中。\n\n## 示例代码\n\nLinux 上一个包含两个密钥的钱包的文件系统布局：\n\n```text\n~/.config/ethereum2/wallets/\n└── 1f031fff-c51d-44fc-8baf-d6b304cb70a7/          # wallet container\n    ├── 1f031fff-c51d-44fc-8baf-d6b304cb70a7       # walletstore\n    ├── 1302106c-8441-4e2e-b687-6c77f49fc624       # keystore\n    ├── 4a320100-83fd-4db7-8126-6d6d205ba834       # keystore\n    └── index                                      # optional\n```\n\n同一个钱包在键值存储中的样子：\n\n```text\n1f031fff-c51d-44fc-8baf-d6b304cb70a7:1f031fff-c51d-44fc-8baf-d6b304cb70a7\n1f031fff-c51d-44fc-8baf-d6b304cb70a7:1302106c-8441-4e2e-b687-6c77f49fc624\n1f031fff-c51d-44fc-8baf-d6b304cb70a7:4a320100-83fd-4db7-8126-6d6d205ba834\n```\n\n一个 `index` 文件：\n\n```json\n[\n  { \"uuid\": \"1302106c-8441-4e2e-b687-6c77f49fc624\", \"name\": \"validator-1\" },\n  { \"uuid\": \"4a320100-83fd-4db7-8126-6d6d205ba834\", \"name\": \"validator-2\" }\n]\n```\n\n## 需要注意\n\n- **状态：Stagnant。** 实际上，验证者客户端并没有统一到这种布局；各客户端之间普遍共享的是 [EIP-2335](/eip-2335/) 的 keystore JSON 文件格式。\n- 规范中关于防止并发写入的部分仍为「TBD」。两个客户端同时使用同一批密钥，正是验证者被罚没（slashing）的原因，因此共享布局本身并不能让同时运行多个客户端变得安全。\n- 文件和对象以 UUID 命名，使名称不会泄露任何关于密钥的信息。实现还应确保权限设置让这些文件只有所属用户可读。\n"}}}
