{"eip":867,"title":"Standardized Ethereum Recovery Proposals","description":"Provide a standardized format for Ethereum Recovery Proposals (ERPs), which relate to recovery of certain classes of lost funds. Individual ERPs will follow the same process as any EIP, but will be formatted and evaluated in a standard way to ensure consistency and transparency.","authors":["Dan Phifer \u003cdp@musiconomi.com\u003e","James Levy \u003cjames@taptrust.com\u003e","Reuben Youngblom \u003creuben@taptrust.com\u003e"],"status":"Stagnant","type":"Meta","created":"2018-02-02","discussionsTo":"https://ethereum-magicians.org/t/eip-867-standardized-ethereum-recovery-proposals-erps/139","repo":"EIPs","label":"EIP-867","officialUrl":"https://eips.ethereum.org/EIPS/eip-867","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-867.md","url":"https://eips.huatuo.xyz/eip-867/","tldr":{"en":"Proposed a standard format for 'Ethereum Recovery Proposals' (ERPs) that would return lost funds through irregular state changes, using a machine-readable State Change Object that clients apply at a set block.","ja":"不具合や過ちで失われた資金を、通常とは異なるステート変更によって取り戻す「Ethereum Recovery Proposal（ERP）」の標準フォーマットの提案。クライアントが所定のブロックで適用する、機械可読な State Change Object を用いる。","ko":"버그와 실수로 잃어버린 자금을 비정상적인 상태 변경으로 되돌려 주는 'Ethereum Recovery Proposal(ERP)'의 표준 형식을 제안. 클라이언트가 정해진 블록에서 적용하는, 기계가 읽을 수 있는 State Change Object를 사용한다.","zh":"提议为\"以太坊恢复提案\"（ERP）制定标准格式，通过非常规的状态变更找回丢失的资金，并使用客户端在指定区块应用的、机器可读的 State Change Object。"},"tags":["process","meta","fund-recovery","governance","irregular-state-change"],"explainers":{"en":{"lang":"en","tldr":"Proposed a standard format for 'Ethereum Recovery Proposals' (ERPs) that would return lost funds through irregular state changes, using a machine-readable State Change Object that clients apply at a set block.","tags":["process","meta","fund-recovery","governance","irregular-state-change"],"related":[779,999,1010],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-867/","markdown":"## What problem does it solve?\n\nBy 2018 a lot of ether was stuck because of bugs and mistakes: contracts that could no longer be used, funds sent to the wrong address, and so on. Each request to fix such a case was ad hoc, hard to judge, and very controversial.\n\nEIP-867 does not argue for any particular recovery. Instead it proposes a **standard format and objective bar** for such requests, called Ethereum Recovery Proposals (ERPs). Each case would be judged the same way, and clients could apply an approved fix without writing custom code.\n\n## How it works\n\nAn ERP is a normal EIP with a fixed set of parts:\n\n- **Simple summary** and **detailed description** of the corrective actions.\n- **Justification**: why the fix needs an irregular state change and why no directly affected party would object. The spec gives \"considerable\", \"insufficient\" and \"unacceptable\" examples.\n- **Verification script**: an auditable JavaScript (web3.js) script with a hard-coded source block. Anyone can rerun it to regenerate the exact same output.\n- **State Change Object (SCO)**: the script's JSON output, which clients read directly.\n\nAn SCO has an `erpId`, a `targetBlock`, an ordered list of `actions`, and metadata. Only two action types are allowed, to keep risk small:\n\n- `weiTransfer`: move a stated amount of wei from one address to another.\n- `storeCode`: replace the code at an address, but only if the existing code matches an `expectedCodeHash`.\n\nClients would load SCO files from a folder at startup. At the target block they would apply all actions as one batch (if one fails, all fail) and write the `erpId` into the block's extra data. Adding an ERP to a client would mean adding just one SCO file.\n\n## Sample code\n\nAn illustrative State Change Object (addresses and values are placeholders):\n\n```json\n{\n  \"erpId\": \"EIP-XXXX\",\n  \"targetBlock\": 12345678,\n  \"actions\": [\n    {\n      \"type\": \"weiTransfer\",\n      \"fromAddress\": \"0x1111111111111111111111111111111111111111\",\n      \"toAddress\": \"0x2222222222222222222222222222222222222222\",\n      \"value\": \"501000000000000000000\"\n    }\n  ],\n  \"metadata\": {\n    \"sourceBlock\": 12300000,\n    \"version\": \"1.0.0\"\n  }\n}\n```\n\n## Things to know\n\n- This proposal is Stagnant and was never adopted. No client applies SCO files, and no ERP has gone live.\n- The idea was highly contested. Critics saw any standard path to irregular state changes as a threat to immutability. Supporters saw it as a fair way to handle clear-cut mistakes. [EIP-999](/eip-999/), which proposed restoring the accidentally self-destructed Parity wallet library, was withdrawn, and [EIP-1010](/eip-1010/) is often read as a parody of such requests.\n- The only irregular state change Ethereum mainnet has made is the 2016 DAO Fork ([EIP-779](/eip-779/)), which predates this proposal.\n"},"ja":{"lang":"ja","tldr":"不具合や過ちで失われた資金を、通常とは異なるステート変更によって取り戻す「Ethereum Recovery Proposal（ERP）」の標準フォーマットの提案。クライアントが所定のブロックで適用する、機械可読な State Change Object を用いる。","tags":["process","meta","fund-recovery","governance","irregular-state-change"],"related":[779,999,1010],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-867/","markdown":"## 何を解決するのか\n\n2018 年までに、バグや間違いのために大量の ether が動かせなくなっていました。使えなくなったコントラクトや、誤ったアドレスに送られた資金などです。こうしたケースを直してほしいという要望は、そのたびに場当たり的で、判断が難しく、非常に議論を呼びました。\n\nEIP-867 は特定の資金回収を主張するものではありません。代わりに、そうした要望のための**標準フォーマットと客観的な基準**を提案します。これが Ethereum Recovery Proposal（ERP）です。各ケースは同じ方法で審査され、クライアントは独自のコードを書かなくても、承認された修正を適用できるようになります。\n\n## 仕組み\n\nERP は、決まった構成要素を持つ通常の EIP です。\n\n- 是正措置の**簡単な要約**と**詳細な説明**。\n- **正当化**: なぜその修正に通常とは異なるステート変更が必要なのか、なぜ直接影響を受ける当事者が反対しないと言えるのか。仕様には「十分」「不十分」「許容できない」の例が示されています。\n- **検証スクリプト**: ソースブロックをハードコードした、監査可能な JavaScript（web3.js）スクリプト。誰でも再実行して、まったく同じ出力を再生成できます。\n- **State Change Object（SCO）**: スクリプトの JSON 出力で、クライアントが直接読み込みます。\n\nSCO は `erpId`、`targetBlock`、順序付きの `actions` のリスト、メタデータを持ちます。リスクを小さく保つため、許可されるアクションは 2 種類だけです。\n\n- `weiTransfer`: 指定した量の wei をあるアドレスから別のアドレスへ移す。\n- `storeCode`: アドレスのコードを置き換える。ただし既存のコードが `expectedCodeHash` に一致する場合に限る。\n\nクライアントは起動時にフォルダから SCO ファイルを読み込みます。対象ブロックですべてのアクションを 1 つのバッチとして適用し（1 つが失敗すればすべて失敗）、`erpId` をブロックの extra data に書き込みます。クライアントに ERP を追加することは、SCO ファイルを 1 つ追加するだけで済みます。\n\n## サンプルコード\n\nState Change Object の例です（アドレスと値はプレースホルダーです）。\n\n```json\n{\n  \"erpId\": \"EIP-XXXX\",\n  \"targetBlock\": 12345678,\n  \"actions\": [\n    {\n      \"type\": \"weiTransfer\",\n      \"fromAddress\": \"0x1111111111111111111111111111111111111111\",\n      \"toAddress\": \"0x2222222222222222222222222222222222222222\",\n      \"value\": \"501000000000000000000\"\n    }\n  ],\n  \"metadata\": {\n    \"sourceBlock\": 12300000,\n    \"version\": \"1.0.0\"\n  }\n}\n```\n\n## 知っておくべきこと\n\n- この提案は Stagnant で、採用されることはありませんでした。SCO ファイルを適用するクライアントはなく、公開された ERP もありません。\n- このアイデアは大きな論争を呼びました。批判する人々は、通常とは異なるステート変更への標準的な道筋はすべて、不変性への脅威だと見ました。支持する人々は、明白な間違いを扱う公平な方法だと見ました。誤って自己破壊された Parity ウォレットライブラリの復元を提案した [EIP-999](/eip-999/) は取り下げられ、[EIP-1010](/eip-1010/) はこうした要望のパロディとして読まれることがよくあります。\n- Ethereum メインネットが行った唯一の通常外のステート変更は、2016 年の DAO フォーク（[EIP-779](/eip-779/)）で、この提案より前のものです。\n"},"ko":{"lang":"ko","tldr":"버그와 실수로 잃어버린 자금을 비정상적인 상태 변경으로 되돌려 주는 'Ethereum Recovery Proposal(ERP)'의 표준 형식을 제안. 클라이언트가 정해진 블록에서 적용하는, 기계가 읽을 수 있는 State Change Object를 사용한다.","tags":["process","meta","fund-recovery","governance","irregular-state-change"],"related":[779,999,1010],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-867/","markdown":"## 어떤 문제를 해결하나요?\n\n2018년까지 버그와 실수 때문에 많은 ether가 묶여 있었습니다. 더 이상 쓸 수 없게 된 컨트랙트, 잘못된 주소로 보낸 자금 등이 그 예입니다. 이런 사례를 고쳐 달라는 요청은 그때그때 즉흥적이었고, 판단하기 어려웠으며, 매우 논쟁적이었습니다.\n\nEIP-867은 특정한 자금 복구를 주장하지 않습니다. 대신 그런 요청을 위한 **표준 형식과 객관적인 기준**을 제안하는데, 이것이 Ethereum Recovery Proposal(ERP)입니다. 각 사례는 같은 방식으로 심사되고, 클라이언트는 맞춤 코드를 작성하지 않고도 승인된 수정을 적용할 수 있습니다.\n\n## 어떻게 동작하나요?\n\nERP는 정해진 구성 요소를 갖춘 일반적인 EIP입니다.\n\n- 시정 조치에 대한 **간단한 요약**과 **상세한 설명**.\n- **정당화**: 왜 그 수정에 비정상적인 상태 변경이 필요한지, 그리고 왜 직접 영향을 받는 당사자 중 누구도 반대하지 않을 것인지. 명세는 \"상당함\", \"불충분함\", \"허용 불가\"의 예시를 제시합니다.\n- **검증 스크립트**: 소스 블록이 하드코딩된, 감사 가능한 JavaScript(web3.js) 스크립트. 누구나 다시 실행해 정확히 같은 출력을 만들어 낼 수 있습니다.\n- **State Change Object(SCO)**: 스크립트의 JSON 출력으로, 클라이언트가 직접 읽습니다.\n\nSCO에는 `erpId`, `targetBlock`, 순서가 있는 `actions` 목록, 메타데이터가 있습니다. 위험을 작게 유지하기 위해 허용되는 액션 유형은 두 가지뿐입니다.\n\n- `weiTransfer`: 명시된 양의 wei를 한 주소에서 다른 주소로 이동.\n- `storeCode`: 주소의 코드를 교체하되, 기존 코드가 `expectedCodeHash`와 일치할 때만 가능.\n\n클라이언트는 시작할 때 폴더에서 SCO 파일을 불러옵니다. 대상 블록에서 모든 액션을 하나의 배치로 적용하고(하나라도 실패하면 모두 실패), `erpId`를 블록의 extra data에 기록합니다. 클라이언트에 ERP를 추가한다는 것은 SCO 파일 하나를 추가하는 것을 의미합니다.\n\n## 샘플 코드\n\nState Change Object의 예시입니다(주소와 값은 자리 표시자입니다).\n\n```json\n{\n  \"erpId\": \"EIP-XXXX\",\n  \"targetBlock\": 12345678,\n  \"actions\": [\n    {\n      \"type\": \"weiTransfer\",\n      \"fromAddress\": \"0x1111111111111111111111111111111111111111\",\n      \"toAddress\": \"0x2222222222222222222222222222222222222222\",\n      \"value\": \"501000000000000000000\"\n    }\n  ],\n  \"metadata\": {\n    \"sourceBlock\": 12300000,\n    \"version\": \"1.0.0\"\n  }\n}\n```\n\n## 알아둘 점\n\n- 이 제안은 Stagnant 상태이며 채택된 적이 없습니다. SCO 파일을 적용하는 클라이언트는 없고, 실제로 시행된 ERP도 없습니다.\n- 이 아이디어는 큰 논란을 불렀습니다. 비판하는 쪽은 비정상적인 상태 변경으로 가는 어떤 표준 경로든 불변성에 대한 위협으로 보았습니다. 지지하는 쪽은 명백한 실수를 다루는 공정한 방법으로 보았습니다. 실수로 자폭(self-destruct)된 Parity 지갑 라이브러리를 복원하자고 제안한 [EIP-999](/eip-999/)는 철회되었고, [EIP-1010](/eip-1010/)은 이런 요청에 대한 패러디로 읽히는 경우가 많습니다.\n- 이더리움 메인넷이 시행한 유일한 비정상적 상태 변경은 2016년의 DAO 포크([EIP-779](/eip-779/))로, 이 제안보다 앞선 일입니다.\n"},"zh":{"lang":"zh","tldr":"提议为\"以太坊恢复提案\"（ERP）制定标准格式，通过非常规的状态变更找回丢失的资金，并使用客户端在指定区块应用的、机器可读的 State Change Object。","tags":["process","meta","fund-recovery","governance","irregular-state-change"],"related":[779,999,1010],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-867/","markdown":"## 它解决什么问题？\n\n到 2018 年，大量 ether 因为漏洞和失误而被卡住：无法再使用的合约、发送到错误地址的资金，等等。每一次要求修复此类情况的请求都是临时性的，难以评判，而且极具争议。\n\nEIP-867 并不主张任何特定的资金恢复。它提议的是为这类请求建立一种**标准格式和客观门槛**，称为以太坊恢复提案（ERP）。每个案例都将以同样的方式评判，客户端也无需编写定制代码就能应用已批准的修复。\n\n## 它如何运作\n\nERP 是一个普通的 EIP，包含一组固定的部分：\n\n- 对纠正措施的**简要摘要**和**详细描述**。\n- **理由说明**：为什么该修复需要非常规的状态变更，以及为什么没有直接受影响的一方会反对。规范给出了\"相当充分\"\"不充分\"和\"不可接受\"的示例。\n- **验证脚本**：一个可审计的 JavaScript（web3.js）脚本，其中硬编码了来源区块。任何人都可以重新运行它，生成完全相同的输出。\n- **State Change Object（SCO）**：脚本输出的 JSON，客户端直接读取。\n\nSCO 包含 `erpId`、`targetBlock`、有序的 `actions` 列表和元数据。为了降低风险，只允许两种操作类型：\n\n- `weiTransfer`：把指定数量的 wei 从一个地址转到另一个地址。\n- `storeCode`：替换某个地址上的代码，但仅当现有代码与 `expectedCodeHash` 匹配时才可执行。\n\n客户端会在启动时从某个文件夹加载 SCO 文件。在目标区块，它们会把所有操作作为一个批次应用（一个失败则全部失败），并把 `erpId` 写入该区块的 extra data。为客户端增加一个 ERP，只需添加一个 SCO 文件。\n\n## 示例代码\n\n一个说明性的 State Change Object（地址和数值均为占位符）：\n\n```json\n{\n  \"erpId\": \"EIP-XXXX\",\n  \"targetBlock\": 12345678,\n  \"actions\": [\n    {\n      \"type\": \"weiTransfer\",\n      \"fromAddress\": \"0x1111111111111111111111111111111111111111\",\n      \"toAddress\": \"0x2222222222222222222222222222222222222222\",\n      \"value\": \"501000000000000000000\"\n    }\n  ],\n  \"metadata\": {\n    \"sourceBlock\": 12300000,\n    \"version\": \"1.0.0\"\n  }\n}\n```\n\n## 需要注意\n\n- 该提案处于 Stagnant 状态，从未被采纳。没有任何客户端应用 SCO 文件，也没有任何 ERP 上线。\n- 这个想法争议极大。批评者认为，任何通往非常规状态变更的标准路径都威胁到不可变性。支持者则认为这是处理明显失误的一种公平方式。曾提议恢复被意外自毁的 Parity 钱包库的 [EIP-999](/eip-999/) 已被撤回，而 [EIP-1010](/eip-1010/) 常被解读为对此类请求的戏仿。\n- 以太坊主网唯一做过的非常规状态变更是 2016 年的 DAO 分叉（[EIP-779](/eip-779/)），它早于这一提案。\n"}}}
