EIP-969 Disabling ASICs by changing Ethash (Modifications to ethash to invalidate existing dedicated hardware implementations)

No call decision · Consensus & staking · EIP status Stagnant · created 2018-04-03

A proposal to change the hash constants inside Ethereum's mining algorithm, Ethash, so that dedicated mining hardware (ASICs) built for that algorithm stops working.

Why it is needed

ASIC miners have much lower operating costs than GPU mining, so people mining with GPUs would soon become unprofitable and get pushed out. Because ASICs are difficult to manufacture and few companies can make them, there is a risk of centralization where a small number of manufacturers monopolize mining power. A manufacturer could use its own ASIC output for its own mining, secretly embed backdoors in the hardware, or more easily mount a 51% attack by controlling more than half of total mining power. Ethash was originally designed to make ASICs difficult to build, but as manufacturing technology advanced, dedicated hardware has already appeared on the market. This proposal aims to break that hardware to slow network centralization and buy time to prepare longer-term countermeasures.

What changes

Today

After EIP-969

Who is affected

In depth

Applicable conditions

If block.number is at or above ASIC_MITIGATION_FORK_BLKNUM, the proof-of-work solution that seals that block must have been mined with ethashV2. Blocks before that remain valid under the existing ethash (v1).

Definition of ethashV2

ethashV2 has the same specification as the existing ethash (v1) except for the fnv implementation. The five places inside hashimoto that use fnv are replaced with separate instances named fnvA, fnvB, fnvC, fnvD, and fnvE, using FNV_PRIME_A (0x10001a7), FNV_PRIME_B (0x10001ab), FNV_PRIME_C (0x10001cf), FNV_PRIME_D (0x10001e3), and FNV_PRIME_E (0x10001f9) respectively.

The three points where fnv is replaced

fnvA replaces fnv in the DAG item selection step. fnvB replaces fnv in the DAG item mix step. In the compress mix step, the original triple-stacked fnv(fnv(fnv(...))) is replaced with fnvC(fnvD(fnvE(...))). The fnv used when generating DAG items is left unchanged.

Optional change to the GetWork RPC

The proposal suggests a variant in which the JSON-RPC eth_getWork call explicitly returns which algorithm the block to be mined should use. A miner or pool could infer the algorithm from the epoch computed from the seedHash, but to avoid compatibility issues, the proposal is to explicitly add BlockNumber as the 4th parameter of GetWork (see go-ethereum issue #2333) and return an algorithm field whose value is either "ethash" or "ethashV2".

Basis for choosing the constants

The new FNV constants follow the criteria of the IETF's official FNV draft (draft-eastlake-fnv-14), and were chosen to have a Hamming weight (the number of 1 bits in the binary representation) of 7 to 8, higher than the existing 0x1000193 (weight 6). The reasoning is that a higher Hamming weight makes it harder for ASIC design tools to optimize the multiplication circuit down to something small, which makes it harder to reuse an existing ASIC by just tweaking its mask. An exhaustive search over the full 32-bit space confirmed these constants produce at most one collision.

Proposed fork block number and the tradeoff behind it

ASIC_MITIGATION_FORK_BLKNUM was proposed to be no later than 5550000 (epoch 185), giving node and miner developers and experts about 30 days' notice to analyze the change. The number tries to balance two risks: announcing it too early gives ASIC manufacturers time to respond, while delaying it too long lets existing ASICs keep operating on the network longer.

Limitations, intent, and current status

This change can only break ASICs whose design is fully fixed (hardwired); hardware that uses partially or fully reconfigurable logic may not be broken by it. It also cannot stop ASIC manufacturers from redesigning new chips. The goal is to disable currently operating or in-production hardware, buying time to prepare proof-of-stake (PoS) development and more fundamental algorithm changes. Test cases and implementation are left as TODO in the source, and this EIP's status is Stagnant; it was not adopted on the live network.

Original EIP · ← EIPs