EIPs Explained

EIP-969 · Stagnant · Core · 2018-04-03

EIP-969: Modifications to ethash to invalidate existing dedicated hardware implementations

A stagnant 2018 proposal to tweak Ethash's FNV constants so that existing Ethash ASIC miners would stop working, aiming to keep mining on GPUs and less centralized; it was never activated.

What problem does it solve?

In 2018, ASIC miners built for Ethash, Ethereum's proof-of-work algorithm, were announced. The spec's concern is that ASICs mine more cheaply than GPUs and would push GPU mining out of profit. Because only a few companies can build ASICs, mining power would become concentrated. The spec lists the risks: a manufacturer mining with its own stock, hidden backdoors in hardware, or a 51 % attack that would otherwise be out of reach.

EIP-969 aims to "poison the well". It makes a minimal change to Ethash that would likely break hard-wired ASICs while leaving GPU performance and power use unchanged. The stated goals are to buy time for stronger long-term measures and for proof-of-stake, and to show the community is willing to fork against ASICs.

How it works

After ASIC_MITIGATION_FORK_BLKNUM, blocks must be sealed with ethashV2. This is the same as Ethash except for its FNV mixing step.

  • Ethash uses the FNV prime 0x01000193 in five places inside hashimoto.
  • ethashV2 replaces those five uses with five different primes:
FNV_PRIME_A = 0x10001a7  // DAG item selection
FNV_PRIME_B = 0x10001ab  // DAG item mix
FNV_PRIME_C = 0x10001cf  // compress mix: fnvC(fnvD(fnvE(...)))
FNV_PRIME_D = 0x10001e3
FNV_PRIME_E = 0x10001f9
  • The FNV used to generate the DAG stays the same, so miners do not need a new dataset.
  • The new primes have a higher Hamming weight (7 to 8, versus 6 for the original). This makes it harder to adapt a fixed-constant multiplier circuit with minor mask changes.
  • The spec suggests a fork block no later than 5,550,000 (epoch 185), giving about 30 days' notice.
  • An optional change lets eth_getWork take the block number and return "ethash" or "ethashV2", so miners do not need special configuration.

Sample code

Ethash's FNV step and the proposed variants (pseudocode):

def fnv(a, b, prime=0x01000193):
    return ((a * prime) ^ b) & 0xFFFFFFFF

fnvA = lambda a, b: fnv(a, b, 0x10001a7)
fnvB = lambda a, b: fnv(a, b, 0x10001ab)
fnvC = lambda a, b: fnv(a, b, 0x10001cf)
fnvD = lambda a, b: fnv(a, b, 0x10001e3)
fnvE = lambda a, b: fnv(a, b, 0x10001f9)

def pow_algorithm(block_number, fork_block):
    return "ethashV2" if block_number >= fork_block else "ethash"

Things to know

  • This proposal is Stagnant and was never activated. Ethereum mainnet never switched to ethashV2.
  • The spec admits the change works only probabilistically. Hardware with configurable logic might survive it, and new ASICs could be designed for ethashV2.
  • The anti-ASIC debate continued with EIP-1057 (ProgPoW), which was also never adopted.
  • The question became moot when Ethereum moved to proof-of-stake at the Merge in 2022 (EIP-3675), which ended mining on mainnet.
  • Any change to the proof-of-work algorithm is a consensus change. Every node and miner would have had to upgrade.

#mining #proof-of-work #ethash #asic #stagnant

Details

Authors
David Stanfill <[email protected]>
Status
Stagnant
Type
Standards Track / Core
Created
2018-04-03

Machine-readable: Markdown · JSON