EIP-1352 Reserving an address range for precompiles (Specify restricted address range for precompiles/system contracts)

No call decision · EVM & execution · EIP status Stagnant · created 2018-07-27

Reserves the address range from 0x0 to 0x0000000000000000000000000000000000ffff exclusively for precompiles and future system contracts, preventing regular accounts and contracts from holding these addresses.

Why it is needed

Precompiles are special addresses built into the EVM to perform specific functions such as hash operations. Currently, the range these addresses occupy is not officially reserved. As a result, whenever a new feature is designed, a separate exception must be specified each time to account for the case where a regular account or contract happens to end up with an address in this range. This EIP reserves the entire address range for precompiles and system contracts in advance, so that such exceptions no longer need to be written separately each time a feature is added.

What changes

Today

After EIP-1352

Who is affected

In depth

Reserved range

Reserves the address range from 0x0000000000000000000000000000000000000000 to 0x000000000000000000000000000000000000ffff for precompiles and future system contracts. Since only the lower 2 bytes of the 20-byte address are used, this corresponds to a total of 65536 addresses.

Background for introduction

Reserving this range in advance reduces the burden of having to separately handle, case by case, situations where a regular account or contract overlaps with a precompile address when designing new protocol features in the future.

No explicit validation added

Because the probability that an address generated from an external transaction signature or a contract address generated via the CREATE instruction falls within this reserved range is extremely low, and because there is no adequate way to test for it, no explicit validation logic is added to prevent such an address from occurring.

Backward compatibility

Since mainnet has no contracts created within this reserved address range, there is no backward compatibility issue arising from this change.

Document status

The Rationale, Test Cases, and Implementation sections are all left empty as N/A, so no specific rationale, implementation details, or testing method are specified in the original text. This EIP's status is Stagnant.

Original EIP · ← EIPs