{"eip":4,"title":"EIP Classification","description":"This document describes a classification scheme for EIPs, adapted from BIP 123.","authors":["Joseph Chow (@ethers)"],"status":"Final","type":"Meta","created":"2015-11-17","repo":"EIPs","label":"EIP-4","officialUrl":"https://eips.ethereum.org/EIPS/eip-4","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-4.md","url":"https://eips.huatuo.xyz/eip-4/","tldr":{"en":"An early meta proposal that sorted standards EIPs into four layers (consensus, networking, API/RPC, applications) so it was clear how hard each change is to deploy.","ja":"標準 EIP を 4 つのレイヤー（コンセンサス、ネットワーク、API/RPC、アプリケーション）に分類し、各変更の展開の難しさを明確にした初期のメタ提案。","ko":"표준 EIP를 네 개의 계층(합의, 네트워크, API/RPC, 애플리케이션)으로 분류해 각 변경을 배포하기가 얼마나 어려운지 분명히 한 초기 메타 제안.","zh":"一项早期的元提案，将标准类 EIP 分为四层（共识、网络、API/RPC、应用），以便清楚地说明每项变更的部署难度。"},"tags":["meta","process","classification"],"explainers":{"en":{"lang":"en","tldr":"An early meta proposal that sorted standards EIPs into four layers (consensus, networking, API/RPC, applications) so it was clear how hard each change is to deploy.","tags":["meta","process","classification"],"related":[1,155,20],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-4/","markdown":"## What problem does it solve?\n\nEthereum is not one standard but a stack of them. Some rules must be followed by every node or the network splits. Others, like a token interface or an RPC method, are optional conventions that only some software cares about. In 2015 the EIP process treated all of these the same way.\n\nEIP-4 borrows Bitcoin's BIP 123 and groups standards EIPs by the system layer they touch. Lower layers need tighter coordination and are harder to change, so labelling an EIP by layer tells readers how much agreement it needs before it can ship.\n\n## How it works\n\nEvery standards EIP is placed in one of four layers:\n\n| Layer | What it covers | What disagreement costs |\n| --- | --- | --- |\n| 1. Consensus | Rules for valid blocks, state and history | A chain split (fork) |\n| 2. Networking | The `eth` wire protocol and the light client protocol (`les`) | Nodes cannot talk; new subprotocols can be added side by side |\n| 3. API/RPC | Higher-level calls used by applications | Little: competing standards can coexist |\n| 4. Applications | Shared conventions such as contract interfaces and data formats | Only apps that opt in are affected |\n\nWithin the consensus layer the spec also defines the two kinds of fork:\n\n- **Soft fork**: some things that used to be valid become invalid. Nothing that was invalid becomes valid.\n- **Hard fork**: some things that used to be invalid become valid. Nodes that do not upgrade reject the new chain.\n\nThe spec places RLPx outside the networking layer and leaves it to the devp2p repository.\n\n## Sample code\n\nThe layers correspond roughly to the `category` field that standards-track EIPs carry today under [EIP-1](/eip-1/):\n\n```yaml\n# Consensus layer  -\u003e category: Core\neip: 155\ntype: Standards Track\ncategory: Core\n\n# API/RPC layer    -\u003e category: Interface\neip: 695\ntype: Standards Track\ncategory: Interface\n\n# Application layer -\u003e category: ERC\neip: 20\ntype: Standards Track\ncategory: ERC\n```\n\n## Things to know\n\n- EIP-4 is Final, but it is mostly of historical interest. The live rules for EIP types and categories are in [EIP-1](/eip-1/), which uses Core, Networking, Interface and ERC instead of numbered layers.\n- The idea still holds: a Core change such as [EIP-155](/eip-155/) needs a coordinated network upgrade, while an application standard such as [ERC-20](/eip-20/) can be adopted one contract at a time.\n- The soft/hard fork definitions here are the classic blockchain ones. In practice almost every Ethereum protocol change has shipped as a scheduled hard fork.\n"},"ja":{"lang":"ja","tldr":"標準 EIP を 4 つのレイヤー（コンセンサス、ネットワーク、API/RPC、アプリケーション）に分類し、各変更の展開の難しさを明確にした初期のメタ提案。","tags":["meta","process","classification"],"related":[1,155,20],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-4/","markdown":"## 何を解決するのか\n\nEthereum は単一の標準ではなく、標準の積み重ねです。すべてのノードが従わなければネットワークが分裂するルールもあれば、トークンのインターフェースや RPC メソッドのように、一部のソフトウェアだけが気にする任意の慣習もあります。2015 年の EIP プロセスは、これらをすべて同じように扱っていました。\n\nEIP-4 は Bitcoin の BIP 123 を借用し、標準 EIP が触れるシステムレイヤーごとにグループ化します。下位のレイヤーほど緊密な調整が必要で変更も難しいため、EIP にレイヤーを示すラベルを付ければ、リリースまでにどれだけの合意が必要かが読者に伝わります。\n\n## 仕組み\n\nすべての標準 EIP は 4 つのレイヤーのいずれかに分類されます。\n\n| レイヤー | 対象 | 意見が割れた場合のコスト |\n| --- | --- | --- |\n| 1. コンセンサス | 有効なブロック、ステート、履歴のルール | チェーン分裂（フォーク） |\n| 2. ネットワーク | `eth` ワイヤープロトコルとライトクライアントプロトコル（`les`） | ノード同士が通信できなくなる。新しいサブプロトコルは並行して追加できる |\n| 3. API/RPC | アプリケーションが使う高レベルの呼び出し | 小さい。競合する標準が共存できる |\n| 4. アプリケーション | コントラクトのインターフェースやデータ形式などの共通慣習 | 採用したアプリだけが影響を受ける |\n\nコンセンサスレイヤーについては、仕様が 2 種類のフォークも定義しています。\n\n- **ソフトフォーク**: これまで有効だったものの一部が無効になります。無効だったものが有効になることはありません。\n- **ハードフォーク**: これまで無効だったものの一部が有効になります。アップグレードしないノードは新しいチェーンを拒否します。\n\n仕様は RLPx をネットワークレイヤーの外に置き、devp2p リポジトリに委ねています。\n\n## サンプルコード\n\nこれらのレイヤーは、現在の標準化トラック EIP が [EIP-1](/eip-1/) の下で持つ `category` フィールドにおおよそ対応します。\n\n```yaml\n# Consensus layer  -\u003e category: Core\neip: 155\ntype: Standards Track\ncategory: Core\n\n# API/RPC layer    -\u003e category: Interface\neip: 695\ntype: Standards Track\ncategory: Interface\n\n# Application layer -\u003e category: ERC\neip: 20\ntype: Standards Track\ncategory: ERC\n```\n\n## 知っておくべきこと\n\n- EIP-4 は Final ですが、主に歴史的な関心の対象です。EIP のタイプとカテゴリーに関する現行ルールは [EIP-1](/eip-1/) にあり、番号付きのレイヤーではなく Core、Networking、Interface、ERC を使います。\n- 考え方は今も通用します。[EIP-155](/eip-155/) のような Core の変更には調整されたネットワークアップグレードが必要ですが、[ERC-20](/eip-20/) のようなアプリケーション標準はコントラクト単位で採用できます。\n- ここでのソフトフォーク／ハードフォークの定義は、ブロックチェーンの古典的なものです。実際には、Ethereum のプロトコル変更のほぼすべてが、予定されたハードフォークとして出荷されてきました。\n"},"ko":{"lang":"ko","tldr":"표준 EIP를 네 개의 계층(합의, 네트워크, API/RPC, 애플리케이션)으로 분류해 각 변경을 배포하기가 얼마나 어려운지 분명히 한 초기 메타 제안.","tags":["meta","process","classification"],"related":[1,155,20],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-4/","markdown":"## 어떤 문제를 해결하나요?\n\n이더리움은 하나의 표준이 아니라 여러 표준이 쌓인 스택입니다. 모든 노드가 따르지 않으면 네트워크가 갈라지는 규칙도 있고, 토큰 인터페이스나 RPC 메서드처럼 일부 소프트웨어만 신경 쓰는 선택적 관례도 있습니다. 2015년의 EIP 프로세스는 이 모두를 똑같이 취급했습니다.\n\nEIP-4는 비트코인의 BIP 123을 차용해, 표준 EIP를 그것이 건드리는 시스템 계층별로 묶습니다. 하위 계층일수록 더 긴밀한 조율이 필요하고 바꾸기도 어렵기 때문에, EIP에 계층 라벨을 붙이면 배포되기 전에 어느 정도의 합의가 필요한지 독자가 알 수 있습니다.\n\n## 어떻게 동작하나요?\n\n모든 표준 EIP는 네 계층 중 하나에 속합니다.\n\n| 계층 | 다루는 범위 | 의견이 갈릴 때의 비용 |\n| --- | --- | --- |\n| 1. 합의 | 유효한 블록, 상태, 이력에 대한 규칙 | 체인 분리(포크) |\n| 2. 네트워크 | `eth` 와이어 프로토콜과 라이트 클라이언트 프로토콜(`les`) | 노드끼리 통신할 수 없음. 새 서브프로토콜은 나란히 추가할 수 있음 |\n| 3. API/RPC | 애플리케이션이 쓰는 상위 수준 호출 | 작음: 경쟁하는 표준이 공존할 수 있음 |\n| 4. 애플리케이션 | 컨트랙트 인터페이스, 데이터 형식 같은 공유 관례 | 채택한 앱만 영향을 받음 |\n\n합의 계층에서는 명세가 두 종류의 포크도 정의합니다.\n\n- **소프트 포크**: 이전에 유효했던 일부가 무효가 됩니다. 무효였던 것이 유효가 되는 일은 없습니다.\n- **하드 포크**: 이전에 무효였던 일부가 유효가 됩니다. 업그레이드하지 않은 노드는 새 체인을 거부합니다.\n\n명세는 RLPx를 네트워크 계층 밖에 두고 devp2p 저장소에 맡깁니다.\n\n## 샘플 코드\n\n이 계층들은 오늘날 표준 트랙 EIP가 [EIP-1](/eip-1/)에 따라 갖는 `category` 필드와 대략 대응합니다.\n\n```yaml\n# Consensus layer  -\u003e category: Core\neip: 155\ntype: Standards Track\ncategory: Core\n\n# API/RPC layer    -\u003e category: Interface\neip: 695\ntype: Standards Track\ncategory: Interface\n\n# Application layer -\u003e category: ERC\neip: 20\ntype: Standards Track\ncategory: ERC\n```\n\n## 알아둘 점\n\n- EIP-4는 Final이지만 주로 역사적인 의미가 있습니다. EIP 유형과 카테고리에 관한 현행 규칙은 [EIP-1](/eip-1/)에 있으며, 번호가 붙은 계층 대신 Core, Networking, Interface, ERC를 사용합니다.\n- 발상은 여전히 유효합니다. [EIP-155](/eip-155/) 같은 Core 변경은 조율된 네트워크 업그레이드가 필요하지만, [ERC-20](/eip-20/) 같은 애플리케이션 표준은 컨트랙트 하나씩 채택할 수 있습니다.\n- 여기서의 소프트/하드 포크 정의는 고전적인 블록체인 정의입니다. 실제로는 이더리움 프로토콜 변경 거의 전부가 예정된 하드 포크로 배포되었습니다.\n"},"zh":{"lang":"zh","tldr":"一项早期的元提案，将标准类 EIP 分为四层（共识、网络、API/RPC、应用），以便清楚地说明每项变更的部署难度。","tags":["meta","process","classification"],"related":[1,155,20],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-4/","markdown":"## 它解决什么问题？\n\n以太坊不是单一标准，而是一整套标准的堆叠。有些规则必须由每个节点遵守，否则网络就会分裂；另一些规则，例如代币接口或 RPC 方法，只是可选的约定，只有部分软件关心。2015 年时，EIP 流程对所有这些一视同仁。\n\nEIP-4 借用了比特币的 BIP 123，按标准所触及的系统层对标准类 EIP 进行分组。越底层的变更越需要紧密协调，也越难修改，因此给 EIP 标注所属层级，就能让读者知道它在上线前需要多大程度的共识。\n\n## 它如何运作\n\n每个标准类 EIP 都归入四层之一：\n\n| 层 | 涵盖内容 | 分歧的代价 |\n| --- | --- | --- |\n| 1. 共识 | 有效区块、状态和历史的规则 | 链分裂（分叉） |\n| 2. 网络 | `eth` 线路协议和轻客户端协议（`les`） | 节点无法通信；新的子协议可以并行添加 |\n| 3. API/RPC | 应用使用的高层调用 | 很小：相互竞争的标准可以共存 |\n| 4. 应用 | 合约接口和数据格式等共享约定 | 只影响选择采用的应用 |\n\n在共识层内，规范还定义了两种分叉：\n\n- **软分叉**：一些原本有效的内容变为无效。原本无效的内容不会变为有效。\n- **硬分叉**：一些原本无效的内容变为有效。未升级的节点会拒绝新链。\n\n规范将 RLPx 排除在网络层之外，交由 devp2p 仓库负责。\n\n## 示例代码\n\n这些层大致对应于如今标准轨道 EIP 在 [EIP-1](/eip-1/) 下携带的 `category` 字段：\n\n```yaml\n# Consensus layer  -\u003e category: Core\neip: 155\ntype: Standards Track\ncategory: Core\n\n# API/RPC layer    -\u003e category: Interface\neip: 695\ntype: Standards Track\ncategory: Interface\n\n# Application layer -\u003e category: ERC\neip: 20\ntype: Standards Track\ncategory: ERC\n```\n\n## 需要注意\n\n- EIP-4 的状态是 Final，但主要具有历史意义。EIP 类型和类别的现行规则在 [EIP-1](/eip-1/) 中，它使用 Core、Networking、Interface 和 ERC，而不是编号的层。\n- 这一思路依然成立：像 [EIP-155](/eip-155/) 这样的 Core 变更需要协调一致的网络升级，而像 [ERC-20](/eip-20/) 这样的应用标准可以逐个合约地采用。\n- 这里对软分叉/硬分叉的定义是经典的区块链定义。实际上，几乎所有以太坊协议变更都是以计划好的硬分叉形式发布的。\n"}}}
