{"eip":7266,"title":"Remove BLAKE2 compression precompile","description":"Remove the blake2f (0x09) precompile by changing the precompile behaviour to result in an exceptional abort","authors":["pcaversaccio (@pcaversaccio)"],"status":"Stagnant","type":"Standards Track","category":"Core","created":"2023-07-03","discussionsTo":"https://ethereum-magicians.org/t/discussion-removal-of-ripemd-160-and-blake2f-precompiles/14857","repo":"EIPs","label":"EIP-7266","officialUrl":"https://eips.ethereum.org/EIPS/eip-7266","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7266.md","url":"https://eips.huatuo.xyz/eip-7266/","tldr":{"en":"Proposed disabling the BLAKE2 compression precompile at address 0x09 so every call to it fails, removing a feature that saw almost no real use.","ja":"アドレス 0x09 の BLAKE2 compression プリコンパイルを無効化し、その呼び出しをすべて失敗させる提案。実際にはほとんど使われなかった機能を取り除く。","ko":"주소 0x09의 BLAKE2 압축 프리컴파일을 비활성화해 호출이 모두 실패하게 만들자는 제안. 실제로는 거의 쓰이지 않은 기능을 제거한다.","zh":"提议禁用地址 0x09 处的 BLAKE2 压缩预编译，使对它的每次调用都失败，从而移除一个几乎没有实际用途的功能。"},"tags":["precompile","blake2","evm","core","cleanup"],"explainers":{"en":{"lang":"en","tldr":"Proposed disabling the BLAKE2 compression precompile at address 0x09 so every call to it fails, removing a feature that saw almost no real use.","tags":["precompile","blake2","evm","core","cleanup"],"related":[152],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7266/","markdown":"## What problem does it solve?\n\n[EIP-152](/eip-152/) added a precompile at address `0x09` that runs the BLAKE2b compression function `F`. It went live in the Istanbul upgrade (December 2019) with the idea of enabling cheap verification of BLAKE2-based chains such as Zcash from inside Ethereum.\n\nAccording to this proposal, that use never materialised: when it was written in mid-2023, `0x09` had been called only about 22,000 times in total, with the most recent call in October 2022. Every precompile is permanent consensus code that each client must implement, test and keep correct. EIP-7266 argues that an unused one is pure maintenance cost and should be removed, and that doing so would also be a useful trial run for retiring EVM features in general.\n\n## How it works\n\nThe change is a single consensus rule. After the fork, any `CALL`, `CALLCODE`, `DELEGATECALL` or `STATICCALL` to address `0x09` must:\n\n- end in an **exceptional halt**,\n- **consume all gas** supplied to the call, and\n- **return no data**.\n\nIn other words, the address behaves like a call that always fails, rather than like an empty account. Nothing changes on the execution side apart from that, and no other precompile is affected.\n\nBecause it changes what valid blocks look like, it needs a hard fork. The author suggests 6 to 12 months' notice for the few applications that might depend on it.\n\n## Sample code\n\nA contract that calls `blake2f` today, and how the result changes under EIP-7266:\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ncontract Blake2Caller {\n    // EIP-152 input: rounds(4) | h(64) | m(128) | t(16) | f(1) = 213 bytes\n    function compress(bytes calldata input) external view returns (bool ok, bytes memory out) {\n        (ok, out) = address(0x09).staticcall(input);\n        // Today: ok == true, out is the 64-byte new state h.\n        // Under EIP-7266: ok == false, out is empty, and all gas forwarded\n        // to the call is burned, so cap the gas you forward.\n    }\n}\n```\n\n## Things to know\n\n- Status is **Stagnant**. It has not been scheduled for any network upgrade, and `0x09` still works on mainnet.\n- If you depend on `blake2f`, do not assume it will remain forever, but there is currently no activation date.\n- The discussion thread also considered removing the RIPEMD-160 precompile (`0x03`); this EIP covers only `0x09`.\n- The \"consume all gas\" behaviour means a contract that forwards all its remaining gas to `0x09` would lose it all. Defensive callers should limit the gas they forward to precompiles.\n"},"ja":{"lang":"ja","tldr":"アドレス 0x09 の BLAKE2 compression プリコンパイルを無効化し、その呼び出しをすべて失敗させる提案。実際にはほとんど使われなかった機能を取り除く。","tags":["precompile","blake2","evm","core","cleanup"],"related":[152],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7266/","markdown":"## 何を解決するのか\n\n[EIP-152](/eip-152/) は、BLAKE2b の圧縮関数 `F` を実行するプリコンパイルをアドレス `0x09` に追加しました。Istanbul アップグレード（2019 年 12 月）で稼働し、Zcash のような BLAKE2 ベースのチェーンを Ethereum 内から安価に検証できるようにする狙いがありました。\n\nこの提案によると、その用途は実現しませんでした。提案が書かれた 2023 年中頃の時点で、`0x09` の呼び出しは合計でわずか約 22,000 回、最新の呼び出しは 2022 年 10 月でした。プリコンパイルはいずれも、各クライアントが実装し、テストし、正しさを保ち続けなければならない恒久的なコンセンサスコードです。EIP-7266 は、使われていないものは純粋な保守コストであり、取り除くべきだと主張します。また、そうすることは EVM の機能を廃止していくうえでの有用な試行にもなると述べています。\n\n## 仕組み\n\n変更は 1 つのコンセンサスルールです。フォーク後、アドレス `0x09` への `CALL`、`CALLCODE`、`DELEGATECALL`、`STATICCALL` はすべて次のようにならなければなりません。\n\n- **例外的停止（exceptional halt）**で終了する\n- 呼び出しに渡された**ガスをすべて消費**する\n- **データを返さない**\n\nつまり、このアドレスは空のアカウントではなく、常に失敗する呼び出しのように振る舞います。実行面でそれ以外に変わることはなく、他のプリコンパイルには影響しません。\n\n有効なブロックの形が変わるため、ハードフォークが必要です。作者は、依存している可能性のある少数のアプリケーションに向けて、6〜12 か月前の告知を提案しています。\n\n## サンプルコード\n\n現在 `blake2f` を呼び出すコントラクトと、EIP-7266 の下で結果がどう変わるか:\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ncontract Blake2Caller {\n    // EIP-152 input: rounds(4) | h(64) | m(128) | t(16) | f(1) = 213 bytes\n    function compress(bytes calldata input) external view returns (bool ok, bytes memory out) {\n        (ok, out) = address(0x09).staticcall(input);\n        // Today: ok == true, out is the 64-byte new state h.\n        // Under EIP-7266: ok == false, out is empty, and all gas forwarded\n        // to the call is burned, so cap the gas you forward.\n    }\n}\n```\n\n## 知っておくべきこと\n\n- ステータスは **Stagnant** です。どのネットワークアップグレードにも予定されておらず、`0x09` はメインネットで今も動作します。\n- `blake2f` に依存している場合、永遠に残るとは考えない方がよいですが、現時点では有効化日は決まっていません。\n- 議論のスレッドでは RIPEMD-160 プリコンパイル（`0x03`）の削除も検討されましたが、この EIP の対象は `0x09` だけです。\n- 「ガスをすべて消費する」挙動により、残りのガスをすべて `0x09` に転送するコントラクトはそのすべてを失います。防御的な呼び出し側は、プリコンパイルに転送するガスを制限してください。\n"},"ko":{"lang":"ko","tldr":"주소 0x09의 BLAKE2 압축 프리컴파일을 비활성화해 호출이 모두 실패하게 만들자는 제안. 실제로는 거의 쓰이지 않은 기능을 제거한다.","tags":["precompile","blake2","evm","core","cleanup"],"related":[152],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7266/","markdown":"## 어떤 문제를 해결하나요?\n\n[EIP-152](/eip-152/)는 BLAKE2b 압축 함수 `F`를 실행하는 프리컴파일을 주소 `0x09`에 추가했습니다. Istanbul 업그레이드(2019년 12월)에 적용되었으며, Zcash 같은 BLAKE2 기반 체인을 이더리움 내부에서 저렴하게 검증할 수 있게 하려는 의도였습니다.\n\n이 제안에 따르면 그런 용도는 현실화되지 않았습니다. 제안이 작성된 2023년 중반까지 `0x09`는 총 약 22,000번만 호출되었고, 가장 최근 호출은 2022년 10월이었습니다. 프리컴파일은 모두 각 클라이언트가 구현하고 테스트하며 정확하게 유지해야 하는 영구적인 합의 코드입니다. EIP-7266은 쓰이지 않는 프리컴파일은 순수한 유지보수 비용이므로 제거해야 하며, 그렇게 하는 것이 EVM 기능을 단계적으로 폐지하는 일반적인 시험 운행으로도 유용하다고 주장합니다.\n\n## 어떻게 동작하나요?\n\n변경은 합의 규칙 하나입니다. 포크 이후 주소 `0x09`로 가는 모든 `CALL`, `CALLCODE`, `DELEGATECALL`, `STATICCALL`은 다음과 같아야 합니다.\n\n- **예외적 중단(exceptional halt)** 으로 끝나고,\n- 호출에 전달된 **가스를 모두 소비**하며,\n- **데이터를 반환하지 않습니다**.\n\n즉 이 주소는 빈 계정이 아니라 항상 실패하는 호출처럼 동작합니다. 실행 측면에서 그 외에 바뀌는 것은 없으며 다른 프리컴파일에는 영향이 없습니다.\n\n유효한 블록의 모양이 바뀌므로 하드 포크가 필요합니다. 작성자는 여기에 의존할 수 있는 소수의 애플리케이션을 위해 6~12개월 전에 공지할 것을 제안합니다.\n\n## 샘플 코드\n\n현재 `blake2f`를 호출하는 컨트랙트와, EIP-7266에서 결과가 어떻게 달라지는지:\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ncontract Blake2Caller {\n    // EIP-152 input: rounds(4) | h(64) | m(128) | t(16) | f(1) = 213 bytes\n    function compress(bytes calldata input) external view returns (bool ok, bytes memory out) {\n        (ok, out) = address(0x09).staticcall(input);\n        // Today: ok == true, out is the 64-byte new state h.\n        // Under EIP-7266: ok == false, out is empty, and all gas forwarded\n        // to the call is burned, so cap the gas you forward.\n    }\n}\n```\n\n## 알아둘 점\n\n- 상태는 **Stagnant**입니다. 어떤 네트워크 업그레이드에도 예정되어 있지 않으며 `0x09`는 메인넷에서 여전히 동작합니다.\n- `blake2f`에 의존한다면 영원히 남아 있을 거라고 가정하지 마세요. 다만 현재로서는 활성화 날짜가 없습니다.\n- 논의 스레드에서는 RIPEMD-160 프리컴파일(`0x03`) 제거도 검토했지만, 이 EIP는 `0x09`만 다룹니다.\n- \"가스를 모두 소비\"하는 동작 때문에 남은 가스를 전부 `0x09`로 전달하는 컨트랙트는 그 가스를 모두 잃게 됩니다. 방어적인 호출자는 프리컴파일에 전달하는 가스를 제한해야 합니다.\n"},"zh":{"lang":"zh","tldr":"提议禁用地址 0x09 处的 BLAKE2 压缩预编译，使对它的每次调用都失败，从而移除一个几乎没有实际用途的功能。","tags":["precompile","blake2","evm","core","cleanup"],"related":[152],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7266/","markdown":"## 它解决什么问题？\n\n[EIP-152](/eip-152/) 在地址 `0x09` 添加了一个运行 BLAKE2b 压缩函数 `F` 的预编译。它随 Istanbul 升级（2019 年 12 月）上线，目的是让以太坊内部能够低成本验证 Zcash 等基于 BLAKE2 的链。\n\n根据该提案，这一用途从未实现：2023 年中提案撰写时，`0x09` 累计仅被调用约 22,000 次，最近一次调用发生在 2022 年 10 月。每个预编译都是永久的共识代码，每个客户端都必须实现、测试并保持其正确。EIP-7266 认为，不用的预编译纯粹是维护成本，应当移除，而这样做也能为整体上退役 EVM 功能提供一次有益的试验。\n\n## 它如何运作\n\n这项变更只有一条共识规则。分叉之后，任何对地址 `0x09` 的 `CALL`、`CALLCODE`、`DELEGATECALL` 或 `STATICCALL` 都必须：\n\n- 以**异常终止（exceptional halt）**结束，\n- **消耗**传给该调用的**全部 gas**，并且\n- **不返回任何数据**。\n\n换句话说，该地址的表现就像一次总是失败的调用，而不是一个空账户。除此之外，执行层面没有其他变化，也不影响其他预编译。\n\n由于它改变了有效区块的形态，因此需要硬分叉。作者建议为可能依赖它的少数应用提前 6 到 12 个月通知。\n\n## 示例代码\n\n一个当前会调用 `blake2f` 的合约，以及在 EIP-7266 下结果会有何变化：\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\ncontract Blake2Caller {\n    // EIP-152 input: rounds(4) | h(64) | m(128) | t(16) | f(1) = 213 bytes\n    function compress(bytes calldata input) external view returns (bool ok, bytes memory out) {\n        (ok, out) = address(0x09).staticcall(input);\n        // Today: ok == true, out is the 64-byte new state h.\n        // Under EIP-7266: ok == false, out is empty, and all gas forwarded\n        // to the call is burned, so cap the gas you forward.\n    }\n}\n```\n\n## 需要注意\n\n- 状态为 **Stagnant**。它尚未被排入任何网络升级，`0x09` 在主网上仍然可用。\n- 如果你依赖 `blake2f`，不要假定它会永远存在，不过目前没有激活日期。\n- 讨论帖中也考虑过移除 RIPEMD-160 预编译（`0x03`）；本 EIP 只涉及 `0x09`。\n- \"消耗全部 gas\"的行为意味着，把剩余 gas 全部转发给 `0x09` 的合约会损失全部 gas。谨慎的调用方应限制转发给预编译的 gas。\n"}}}
