Professional Documents
Culture Documents
ETHEREUM
Introduction
The Ethereum Merge merges the PoW Mainnet + the Beacon Chain.
15 Sep 2022
1 Dec 2020
The PoW Mainnet handles transaction execution and holds the states of the blockchain.
The Beacon Chain allows users to deposit ETH (one-way) into a deposit contract. Before
the
Validators on the Beacon Chain record the state of the validator pool. Merge
One of the objectives of the Merge is to reduce the rate of ETH issuance.
ETH are also burned (to reduce supply) in the following manners:
After
Transaction base fees (introduced in the London upgrade) the
Merge
Penalties to validators (slashing)
The London Upgrade
Took place on August 2021; specifies how transaction fees are calculated.
Using the example above, a total of 21,000 * priority fee will be deducted from the
sender's account. Out of which:
21,000 * base gwei will be burnt “base gwei” fluctuates on a block-by-block basis.
Ethereum claims that this makes the transaction fees more predictable.
Slashing
Validators will be slashed if they:
Propose and sign two different blocks for the same slot (every 12 seconds) Slashed
Attest to a block that "surrounds" another one (effectively changing history) according to the
schedule below
Double voting by attesting to two candidates for the same block height
Activate
Do not submit attestations when required "inactivity leak"
Day 1: 1/32 ETH slashed Day 36: All stacked ETH slashed
Inactivity Leak is activated if the Beacon Chain has >4 epochs without finalising.
When more than 1/3 validators fail to submit attestations within this period,
Their stake will bleed away until they control less than 1/3 of the total stake.
Note 1: The requirement is to have 2/3 majority to agree on the state.
Note 2: By 2/3 majority, it doesn't mean the "2/3 of the total number of validators".
Instead, it refers to 2/3 of the TOTAL STAKED ETHER.
Note 3: A staker can run multiple validators, assuming they have enough ETH at stake.
An introduction
PROOF OF STAKE
Terms
Term Description
staker
stake ETH and run validators
validator
For every 32 ETH staked, 1 validator is activated
proposer
a validator pseudorandomly selected to propose a block in a "slot"
attestor
a validator attesting to a proposed block
aggregator
a validator aggregating attestations to a proposed block
Every 12s, 1 beacon chain block and up to 64 shard blocks are added.
Shard-chains will be reconciled with the main chain through crosslinks. How shard blocks
are added
A beacon chain block can contain up to 64 crosslinks, one for each shard.
Validators attest to "what is the most recent valid beacon chain block" and "what is the
most recent valid shard-chain blocks, aka head of chain".
beacon block the block from the "main chain"; contains blocks from the shard-chains
Graphically
Attestation
Current slot
Beacon block
Current epoch
checkpoint
Previous epoch
checkpoint
1 block proposer
The rest attest to the proposed block
Beacon Chain Block
Proposed by 1 block proposer at each slot.
Attested by other validators in the committee for the slot. Attest on:
The slot that the block is in
The hash of the beacon block
The current epoch's checkpoint block
The last epoch's checkpoint block
The Beacon Chain block is the block in the Main Chain when sharding takes place.
Note that a validator will not get the full base reward UNLESS it is a block proposer AND
participates in the sync committee.
If you are not a block proposer, you get only 7/8 * base reward.
A block proposer may also be rewarded for reporting evidence of misbehaviour; it will be
rewarded with
slashed_validators_effective_balance / 512
Withdrawal
At present, validators' staked ETH cannot be withdrawn until the Shanghai upgrade.
After the Shanghai upgrade - stakers may exit and withdraw their balance
Six validators may exit in a given epoch
May reduce to four as more validators withdraw
Keys
Externally Owned Accounts - Validator -
Public & private keys for sending transactions Public & private keys for attesting to blocks
https://eth2book.info/altair/contents/
https://medium.com/coinmonks/ethereum-2-0-for-
dummies-part-1-why-upgrade-112d8f5b6d88
https://ethereum.org/en/developers/docs/
https://cointelegraph.com/ethereum-for-
beginners/ethereum-2-0-staking-a-beginners-guide-
on-how-to-stake-eth