EIP-1011 · Stagnant · Core · 2018-04-20
EIP-1011: Hybrid Casper FFG
A 2018 plan to move Ethereum toward proof-of-stake by layering Casper FFG finality, run by a staking contract, on top of proof-of-work mining. It was abandoned in favor of the Beacon Chain.
What problem does it solve?
Proof-of-work uses huge amounts of energy, has no economic finality (a block is only "probably" permanent), and leans toward mining-pool centralization. Ethereum always planned to move to proof-of-stake. In 2017 the Casper the Friendly Finality Gadget (FFG) paper showed how validators who lock up ETH could finalize blocks, and lose their deposit if they cheat.
EIP-1011 proposes a cautious first step. Keep miners producing blocks, but let a staking contract finalize checkpoints on top of them, creating a PoW/PoS hybrid.
How it works
- A Casper contract is deployed at the fork block. The protocol writes its code directly into state with a 1,250,000 ETH balance for rewards. Helper contracts (a message hasher and a "purity checker") are deployed alongside it.
- Validators deposit ETH (minimum 1500 ETH) into the contract and vote on checkpoints, which are the last block of each 50-block epoch. Once two-thirds of the deposit backs consecutive checkpoints, they become justified and then finalized.
- Vote transactions are special. They are sent to the contract with an empty signature (
r = s = 0,v = CHAIN_ID), come from a null sender, sit at the end of the block, and use a separate gas budget, so votes never compete with user transactions. - Each epoch starts automatically. The protocol makes a system call to the contract.
- Slashing. Signing conflicting votes burns part of the validator's deposit.
- Lower mining rewards. Since security shifts to stakers, the block reward drops in steps of about three months, from 3 ETH down to 0.6 ETH.
New fork choice: clients prefer the chain with the highest justified epoch, use total difficulty only as a tie-breaker, and never revert a finalized block:
score = highest_justified_epoch(block) * 10**40 + block.total_difficulty
Sample code
Block reward schedule after the fork, from the spec:
NEW_BLOCK_REWARD = 6 * 10**17 # 0.6 ETH
REWARD_STEPDOWN_BLOCK_COUNT = 550_000 # ~3 months
def block_reward(n, fork):
steps = (n - fork) // REWARD_STEPDOWN_BLOCK_COUNT
return max(5 - steps, 1) * NEW_BLOCK_REWARD # 3.0 → 2.4 → 1.8 → 1.2 → 0.6 ETH
Things to know
- This proposal is Stagnant and was never deployed. Key values such as the fork block, contract addresses and bytecode were still "TBD" in the spec.
- In 2018 researchers dropped the contract-based hybrid in favor of a separate proof-of-stake Beacon Chain. Ethereum completed its switch to PoS with The Merge in September 2022, specified in EIP-3675.
- The ideas survived. Today's consensus layer still uses Casper FFG for finality, with checkpoints, justification, finalization and slashing, just not this contract design.
- The numbers here (1500 ETH minimum deposit, 50-block epochs) are not today's values. Current PoS uses 32-slot epochs and a 32 ETH minimum validator balance.