EIPs Explained

EIP-8200 · Draft · Core · 2026-03-21

EIP-8200: EVMification

Replaces the RIPEMD-160, MODEXP and BLAKE2f precompiles with ordinary EVM bytecode deployed at the same addresses, so clients and zkEVMs have fewer special-case implementations to maintain.

What problem does it solve?

Precompiles are built-in contracts at low addresses that every client implements natively, outside the EVM. Each one is extra code to maintain in every client, another place where clients can disagree and split consensus, and a hurdle for zkEVMs, which usually need a separate optimised circuit per precompile.

Some precompiles are barely used or can be emulated in EVM code at modest cost. Following EIP-7666, which does this for the identity precompile (0x04), this EIP "EVMifies" three more:

Address Precompile Why it is a candidate (per the authors)
0x03 RIPEMD-160 Minimal on-chain use; mainly for Bitcoin-style addresses
0x05 MODEXP (EIP-198) 99.99 % of use is 256-bit moduli for SNARK verification
0x09 BLAKE2f (EIP-152) Now used mostly by a single contract

How it works

  • At the start of the activation block, each of the three addresses gets EVM bytecode that is functionally equivalent to the precompile.
  • From that block on, those addresses are no longer treated as precompiles; calls simply execute the deployed code.
  • Gas changes: callers pay normal opcode costs instead of the precompile formulas (for example RIPEMD-160's 600 + 120 * words, BLAKE2f's rounds). MODEXP is expected to become more expensive for large inputs. The authors accept these repricings instead of trying to reproduce the old formulas.
  • Because the code sits at the same address with the same input/output format, existing callers keep working without changes.

Sample code

Calling code stays exactly the same; only the gas consumed changes:

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

contract Hashes {
    function ripemd(bytes calldata data) external pure returns (bytes20) {
        return ripemd160(data);            // still calls address 0x03
    }

    function modexp(bytes32 b, bytes32 e, bytes32 m) external view returns (bytes32 r) {
        bytes memory input = abi.encodePacked(uint256(32), uint256(32), uint256(32), b, e, m);
        (bool ok, bytes memory out) = address(0x05).staticcall(input); // forward all gas
        require(ok);
        r = bytes32(out);
    }
}

Things to know

  • Status is Draft. The bytecode for each address, the gas comparisons and the test cases are not yet specified.
  • Contracts that call these addresses with a hard-coded gas stipend may start reverting if the EVM version costs more. Forward enough gas (or all of it).
  • The bytecode must match the precompiles exactly, including for invalid inputs, so it will need thorough testing and audits.
  • Related input bounds and repricing for MODEXP are in EIP-7823 and EIP-7883.

#precompiles #evm #simplification #zkevm #core

Details

Authors
Kevaundray Wedderburn (@kevaundray)
Status
Draft
Type
Standards Track / Core
Created
2026-03-21
Requires

Machine-readable: Markdown · JSON