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
- The address range used by precompiles and system contracts is not officially reserved
- Each time a new feature is designed, an exception must be specified separately for cases where a regular account's address overlaps with this range
After EIP-1352
- The address range from 0x0 to 0x000...ffff (the lower 2 bytes, 65536 addresses in total) is reserved exclusively for precompiles and system contracts
- No separate exception rule for collisions in this range is needed when designing future features
Who is affected
- Client teams: Since the probability of a regular transaction signature or CREATE producing an address in this range is extremely low, no separate explicit validation logic needs to be added.
- EIP and protocol designers: When adding precompiles or system contracts in the future, designs can proceed with the address space already secured in advance.
- General users and wallet developers: Since there are currently no contracts created in this range on mainnet, the practical impact is minimal.
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.