An Introduction to Ethereum
300Hours Learn Lab Curriculum Reading | Topic: CAIA1_DIGITAL | Qualification: CAIA LEVEL1
# An Introduction to Ethereum Proposed by Vitalik Buterin in late 2013 and launched in July 2015, **Ethereum** extended blockchain architecture from a single-purpose monetary ledger into a programmable, decentralized **world computer**. Rather than restricting scripting to basic asset transfers, Ethereum embeds a **Turing-complete** execution engine-the **Ethereum Virtual Machine (EVM)**-that allows developers to deploy arbitrary smart contracts powering decentralized exchanges, stablecoins, lending protocols, tokenized real-world assets (RWAs), and NFTs. Its native asset, **Ether (ETH)**, serves simultaneously as the network's gas payment currency, its Proof-of-Stake security collateral, and a widely used collateral asset across DeFi. --- ## 1. Account-Based State Machine and the EVM Whereas Bitcoin tracks discrete Unspent Transaction Outputs (UTXOs), Ethereum maintains a global **account-based state machine** updated deterministically with every new block (produced on fixed **12-second slots**). Ethereum recognizes two account types: 1. **Externally Owned Accounts (EOAs)**: Controlled by a user's private cryptographic key. EOAs hold ETH balances, initiate transactions, and pay gas fees, but contain no executable code. 2. **Contract Accounts**: Governed by deployed EVM bytecode rather than a private key. Contract accounts hold balances and internal storage variables, executing automatically only when triggered by an incoming call from an EOA or another smart contract. ### Gas Metering and Token Standards Every EVM opcode-addition, storage write, cryptographic signature check-carries a fixed **gas cost** measured in gas units. Users pay transaction fees in ETH denominated in **Gwei** ($1\text{ ETH} = 10^9\text{ Gwei} = 10^{18}\text{ Wei}$). Gas serves two critical purposes: it compensates validators for block space and prevents infinite loops from halting the network. Ethereum's ecosystem dominance also stems from widely adopted **ERC (Ethereum Request for Comments)** token standards that enable seamless composability: - **ERC-20**: Fungible tokens (stablecoins like USDC, governance tokens, wrapped assets). - **ERC-721**: Non-fungible tokens (NFTs) where every token ID is unique. - **ERC-1155**: Multi-token standard combining fungible and non-fungible items in one contract for gas efficiency. - **ERC-4626**: Standardized tokenized yield-bearing vaults used across institutional DeFi. --- ## 2. The Merge, Proof of Stake, and Staking Economics In September 2022, Ethereum executed **The Merge**, retiring Proof-of-Work mining and uniting its **Execution Layer** (transactions and EVM state) with its **Consensus Layer** (the PoS Beacon Chain) without downtime. - **Energy Reduction**: Switching from PoW to PoS cut Ethereum's electricity consumption by roughly **$99.95\%$**, removing a major ESG objection for institutional allocators. - **Validator Requirements**: Running a solo validator requires staking **$32\text{ ETH}$** (or multiples thereof under later upgrades raising effective balance caps). Validators are pseudorandomly selected to propose blocks and join attestation committees every epoch ($32\text{ slots} = 6.4\text{ minutes}$), achieving **economic finality** after two finalized epochs (~$12.8\text{ minutes}$) when a $2/3$ supermajority attests. - **Rewards vs. Slashing**: Validators earn consensus-layer **issuance rewards** (which scale sublinearly with the square root of total staked ETH, lowering per-validator APR as more ETH stakes) plus execution-layer **priority fees (tips)** and **MEV** block-building rewards. Offline validators incur mild inactivity leaks, whereas provably malicious equivocation triggers severe **slashing** and forced exit. - **Liquid Staking Tokens (LSTs)**: Because native staking locks capital and requires technical uptime, protocols such as Lido (`stETH`) and Rocket Pool (`rETH`) pool user deposits, delegate to node operators, and issue liquid ERC-20 receipt tokens that continue accruing staking yield while remaining usable as DeFi collateral. Institutional evaluators monitor LSTs closely for **validator centralization risk**, **smart contract risk**, and **secondary-market de-pegs** during liquidity panics. --- ## 3. EIP-1559 Fee Market and ETH Monetary Dynamics Prior to August 2021, Ethereum used a first-price auction for gas that caused erratic fee spikes. **EIP-1559** overhauled transaction pricing into a two-part structure: $\text{Total Transaction Fee} = \text{Gas Used} \times (\text{Base Fee} + \text{Priority Tip})$ - **Base Fee (Burned)**: Determined algorithmically by the protocol to target $50\%$ block gas utilization (rising up to $+12.5\%$ per full block, falling when blocks are under $50\%$ full). Critically, the entire Base Fee is **permanently burned (destroyed)** rather than paid to validators-preventing validators from artificially stuffing blocks to inflate fees. - **Priority Fee / Tip (Paid to Validator)**: An optional tip incentivizing validators to include a transaction quickly during congestion. ### Dynamic Supply: Issuance vs. Burn Unlike Bitcoin's hard 21-million ceiling, Ethereum has **no fixed supply cap**. Instead, net ETH supply growth fluctuates dynamically with network demand: $\Delta \text{Supply}_{\text{net}} = \text{PoS Validator Issuance} - \text{EIP-1559 Burned Base Fees}$ During periods of heavy DeFi, NFT, or settlement demand, burned base fees exceed PoS issuance, making ETH **net deflationary** (sometimes called the "ultrasound money" regime). During quieter periods-or after Layer-2 upgrades reduce L1 gas congestion-issuance exceeds burn, yielding modest positive net inflation (typically well below $1\%$ annually, compared with $\sim 4\%$ prior to The Merge). --- ## 4. Ethereum's Rollup-Centric Scaling Roadmap Rather than expanding Layer-1 block sizes indefinitely (which would price out independent home validators and impair decentralization), Ethereum adopted a **modular, rollup-centric roadmap**: Layer-1 serves as the high-security **settlement and data-availability layer**, while **Layer-2 Rollups** execute transactions off-chain, bundle thousands of them into compressed batches, and post data/proofs back to Ethereum L1. ```mermaid flowchart TD L1[Ethereum Layer-1: PoS Consensus, Security & Settlement]:::blue --> DA[EIP-4844 Blob Data Availability]:::turquoise DA --> OPT[Optimistic Rollups: Arbitrum, Optimism]:::yellow DA --> ZK[Zero-Knowledge Rollups: zkSync, Starknet]:::purple OPT --> OPTD[Assume Validity; 7-Day Fraud-Proof Challenge Window; Easy EVM Equivalence]:::yellow ZK --> ZKD[Cryptographic Validity Proofs zk-SNARK / zk-STARK; Fast L1 Finality; Higher Prover Compute]:::purple OPT --> APPS[High-TPS Low-Fee DeFi, Payments & Tokenized Assets]:::green ZK --> APPS classDef blue fill:#eff6ff,stroke:#1976D2,color:#1e293b classDef turquoise fill:#ecfdf5,stroke:#53A97D,color:#1e293b classDef yellow fill:#fffbeb,stroke:#FFA300,color:#1e293b classDef purple fill:#f5f3ff,stroke:#8A759D,color:#1e293b classDef green fill:#dcfce7,stroke:#009966,color:#1e293b ``` - **Optimistic Rollups**: Assume batched transactions are valid by default ("optimistically") and grant watchers a challenge period (typically **7 days** for native L1 withdrawals, though liquidity bridges offer instant exits for a small fee) to submit a **fraud proof** rejecting any invalid state transition. - **Zero-Knowledge (ZK) Rollups**: Attach a succinct mathematical **validity proof** (zk-SNARK or zk-STARK) verifying that every state transition in the batch obeyed EVM rules. Once verified on L1, finality is near-instant without a 7-day dispute window. - **EIP-4844 (Proto-Danksharding / Blobs, March 2024)**: Introduced temporary binary large objects ("blobs") with an independent fee market specifically for rollup data posting, slashing L2 transaction costs by more than $90\%$. Notably, cheaper L2 fees can reduce L1 Base Fee burn in the short run, highlighting an active economic tension between **L2 scaling adoption** and **L1 fee accrual to ETH**. --- ## 5. Worked Quantitative Examples: EIP-1559 Burn and Staking Real Yield ### Example 1: EIP-1559 Gas Cost and Net Supply Inflation vs. Deflation Suppose a DeFi token swap consumes $180{,}000\text{ gas units}$ when the Base Fee is $25\text{ Gwei}$, the Priority Tip is $2\text{ Gwei}$, and ETH trades at USD 3,200. 1. **Fee Decomposition**: - Burned Base Fee: $180{,}000 \times 25 = 4{,}500{,}000\text{ Gwei} = 0.0045\text{ ETH}$ ($\text{USD }14.40$). - Validator Tip: $180{,}000 \times 2 = 360{,}000\text{ Gwei} = 0.00036\text{ ETH}$ ($\text{USD }1.15$). - Total User Cost: $0.00486\text{ ETH}$ ($\text{USD }15.55$), of which $92.6\%$ is permanently removed from ETH supply. 2. **Macro Supply Regime**: Assume total ETH supply is $120.0\text{ million ETH}$ and annual PoS validator issuance is $864{,}000\text{ ETH}$ ($+0.72\%$ gross inflation). - **High-Activity Scenario** (annualized burn $= 1{,}140{,}000\text{ ETH}$, or $0.95\%$): $g_{\text{net}} = 0.72\% - 0.95\% = -0.23\%\text{ (net deflationary)}$ - **Low-Congestion / Post-Blob Scenario** (annualized burn $= 420{,}000\text{ ETH}$, or $0.35\%$): $g_{\text{net}} = 0.72\% - 0.35\% = +0.37\%\text{ (mild net inflation)}$ ### Example 2: Nominal vs. Real (Dilution-Adjusted) Staking Yield Suppose $30\%$ of all ETH is staked ($36\text{ million ETH}$ out of $120\text{ million ETH}$), gross annual issuance is $0.72\%$ of total supply, and stakers additionally earn $0.60\%$ APR from priority tips and MEV. 1. **Nominal Staking APR**: - Consensus issuance paid strictly to the $30\%$ staked subset: $0.72\% / 0.30 = 2.40\%$ APR. - Total nominal APR: $2.40\% + 0.60\% = 3.00\%$. 2. **Real (Dilution-Adjusted) Staking Yield**: In the low-congestion scenario where net supply expands by $+0.37\%$, non-stakers suffer $-0.37\%$ monetary dilution while stakers earn: $r_{\text{real, staked}} \approx 3.00\% - 0.37\% = 2.63\%$ In the high-activity deflationary scenario ($g_{\text{net}} = -0.23\%$), fee burns act economically like corporate share buybacks, lifting stakers' real token-denominated yield to $3.00\% - (-0.23\%) = 3.23\%$. --- ## 6. Institutional Comparison: Bitcoin vs. Ethereum | Investment Dimension | Bitcoin (BTC) | Ethereum (ETH) | | :--- | :--- | :--- | | **Primary Economic Thesis** | Decentralized digital gold / non-sovereign store of value | Decentralized smart-contract settlement & productive staking platform | | **Consensus & Energy Profile** | Proof of Work (SHA-256); high external energy security | Proof of Stake (Gasper); $\sim 99.95\%$ lower energy footprint | | **Supply Schedule** | Fixed 21 million hard cap; deterministic 4-year halvings | No hard cap; dynamic PoS issuance minus EIP-1559 fee burns | | **Native Yield / Cash Flow** | None ($0\%$ native yield) | Staking yield (issuance + priority tips + MEV), subject to slashing/lockup | | **Valuation Lens** | Monetary premium, store-of-value share, network effects | Fee-revenue / burn DCF, monetary collateral demand, L2 settlement volume | | **Primary Protocol Risk** | Long-term post-subsidy security budget | Complex upgrade execution, L2 fee cannibalization, smart-contract/LST concentration | - **Programmable World Computer**: Ethereum uses an **account-based state machine** (EOAs and Contract Accounts) running the Turing-complete **EVM**, metered by **gas** and standardized via ERC-20, ERC-721, and ERC-4626. - **Proof of Stake (The Merge)**: Reduced electricity use by $\sim 99.95\%$; solo validators stake $32\text{ ETH}$ to earn issuance, priority tips, and MEV while facing **slashing** for malicious behavior; **LSTs** unlock liquidity but introduce smart-contract and centralization risks. - **EIP-1559 Monetary Mechanics**: Splits fees into a **burned Base Fee** and a validator **Priority Tip**; net ETH supply expands or contracts dynamically depending on whether PoS issuance exceeds or trails fee burns. - **Rollup-Centric Scaling**: **Optimistic Rollups** rely on 7-day fraud proofs, whereas **ZK Rollups** use cryptographic validity proofs for faster L1 finality; **EIP-4844 blobs** sharply cut L2 data costs while creating an L2-scaling vs. L1-fee-burn trade-off. - **Institutional Profile**: Unlike non-yielding Bitcoin, ETH combines productive **staking yield** and fee-burn valuation frameworks with higher technical complexity and competitive Layer-1/Layer-2 dynamics. What You Need to Know