Ethereum - How It Works
Ethereum - How It Works
1. Overview of Ethereum
2. Key Ethereum Concepts
3. Smart contracts & dApps
4. The Scalability Imperative in Blockchain
5. Conclusions
6. Further Reading
7. Appendix: Ethereum Roadmap
1. Overview of Ethereum
Session: Ethereum: How It Works
Fundamentals of Ethereum (1/2)
• Ethereum, conceptualized as a "world computer," is The 2014 Ethereum whitepaper by Vitalik Buterin, the
a decentralized platform that enables the execution founder, identified key limitations in Bitcoin's scripting
of smart contracts and decentralized applications capabilities:
(dApps).
• Lack of Turing-completeness: Bitcoin's scripting language is
not Turing-complete, it can’t perform all possible computational
• Launched in 2015, Ethereum leverages blockchain operations.
technology for network state synchronization and
• Value-blindness: Bitcoin scripts cannot natively assess the
security, and it features its native cryptocurrency,
value of transactions.
Ether, for transaction processing and network
operations. • Lack of state: Bitcoin lacks a mechanism to track and store the
state of complex applications.
• It can be viewed as an internet framework that • Blockchain-blindness: Bitcoin scripts have limited ability to
interact with or understand blockchain data beyond simple
operates without central intermediaries. It relies on a transaction details.
vast network of participant computers, which
collectively perform computations and maintain the
network. This structure allows for the running of Ethereum was designed to overcome these limitations and
internet applications directly on the blockchain, to address the need for creating new blockchains for
independent of traditional service providers like different functionalities.
Google or Amazon.
Source: Ethereum Whitepaper | ethereum.org, Vitalik Buterin Created Ethereum Following World of Warcraft Debacle (businessinsider.com)
• Open
• Borderless
• Censorship resistant
• Immutable
• Transparent
• Global
• Decentralized
Vitalik Buterin,
Ethereum Founder
*Gavin Wood
Ethereum Co-founder, Polkadot Founder
• Slow, deliberate updates to ensure long-term • Actively seeks to address scalability through
security and stability. innovations like PoS consensus and
Proto-DankSharding.
• Struggles with scalability, relying on second-layer
solutions like the Lightning Network. • Transitioned from PoW to PoS for more
energy-efficient and scalable consensus.
• Uses PoW consensus, which is energy-intensive
but highly secure. • Risks temporary centralization during major
upgrades but aims for long-term decentralization.
• Focuses on backward compatibility to maintain
• Focuses on continuous improvement even at the
network stability and user confidence.
expense of backward compatibility.
Year Event
2013 Vitalik Buterin publishes the Ethereum whitepaper, outlining the concept of a decentralized
blockchain platform beyond payments.
2014 The Ethereum yellow paper is released by Gavin Wood, describing the technical aspects of
Ethereum. Ethereum's Initial Coin Offering (ICO) raises $20 million.
2015 The genesis block of Ethereum is mined, marking the beginning of the "Frontier" development
phase.
Ethereum introduces the "difficulty bomb" during the Frontier Thawing fork, designed to
eventually make Proof of Work (PoW) mining unsustainable and facilitate the transition to
Proof of Stake (PoS)
2016 The DAO hack occurs, resulting in a hard fork that splits Ethereum into two blockchains:
Ethereum and Ethereum Classic.
Year Event
2017 Ethereum’s "Byzantium" fork delays the difficulty bomb and sets the groundwork for the PoS
transition.
2019 The "Constantinople" fork introduces key updates like EIP-1234, preventing the blockchain
from freezing before the PoS transition, and EIP-1014 to enable interactions with future
addresses.
2020 The "Muir Glacier" update delays the difficulty bomb by 600 days. In December, the Beacon
Chain is launched, marking the beginning of Ethereum’s transition to PoS.
2021 The "London Hard Fork" implements EIP-1559, restructuring transaction fees and delaying the
difficulty bomb again. The "Altair" upgrade adds slashing penalties for validators, further
preparing for PoS.
Year Event
2022 The "Gray Glacier" delays the difficulty bomb to September 2022. Successful merges are
completed on key testnets (Ropsten, Sepolia, Goerli), finalizing testing for the Merge.
2022 The "Bellatrix" upgrade activates the Beacon Chain's consensus layer, preparing for the Merge.
(Sept.) The "Paris" upgrade completes the transition to PoS, shutting down PoW mining.
2023 The genesis block of Ethereum is mined, marking the beginning of the "Frontier" development
phase.
The "Capella" and "Shanghai" upgrades enable withdrawals of staked ETH, completing the full
transition to PoS.
2024 The "Cancun-Deneb (Dencun)" upgrade introduces EIP-4844 (Proto-Danksharding), reducing
data storage costs for layer 2 rollups and lowering transaction fees by using temporary data
"blobs".
Source: etherscan.io.
• The EVM is a computation engine which acts like a • Most of the source code for using smart contracts is
decentralized computer that has millions of written in the programming language Solidity.
executable projects. It acts as the virtual machine
which is the bedrock of Ethereum’s entire operating
structure.
ether’s purpose is not to serve the function of money, due to its high utility it is
often used as a currency and as a speculative instrument.
• Ethereum, like Bitcoin, originally used Proof-of-Work (PoW), which required significant
computational power to solve complex puzzles and keep the network secure. However,
Ethereum has now transitioned to Proof-of-Stake (PoS), a more energy-efficient alternative.
• Validators in PoS propose and verify blocks based on the amount of ETH they stake, acting
as collateral, which discourages malicious activity.
• This approach reduces hardware requirements and lowers energy consumption. However, PoS can
be criticized for favoring those who hold more tokens, making it somewhat plutocratic.
• The first block of each epoch is a checkpoint, which validators vote on. When a checkpoint is
approved by the majority, previous transactions are solidified, ensuring they can't be reversed.
• Block proposers and committees are selected randomly for each epoch, ensuring fairness
and security by preventing validators from knowing when they’ll be chosen.
• The RANDAO algorithm facilitates this semi-random selection, adding protection against
manipulation by keeping validators unaware of when they will propose or validate a block.
• A gas fee is paid for executing operations on the network. The fee is denominated in Ether or in Gwei, the latter for
a better user experience.
• After Ethereum's transition to PoS in September 2022, a portion of gas fees became rewards for validators who
stake ETH and participate in block validation.
Source: Etherscan.io
• This is a fast-moving space with new token standards proposed all the time.
• Smart contracts are fundamental to blockchain applications. They operate as self-executing scripts where
the terms of the agreement are embedded directly in the code.
• The best way to conceptualize them is through "if-then" logic. They function by following a simple principle:
"IF condition A is met, THEN execute function B."
• In a more technical context, they are immutable and deterministic computer programs. They operate
within the EVM. This setup enables them to run on Ethereum's decentralized infrastructure, often referred to
as the world computer (source).
• This means that all EVM-compatible blockchains can execute similar contracts, fostering interoperability and
easing developer transition between different blockchain environments.
Source: District0x
• That means no one person or entity has control of the network. The wide consensus in the crypto
community is that the following must be true for something to be considered a dApp:
1. It must be open-source and operate on its own without any one entity controlling it.
2. Its data and records must be public.
3. It can use a cryptographic token to help keep the network secure.
• dApps can be simple programs, games, financial applications and more. DeFi is merely a popular
subset of all possible dApps
• Optionally, the collection of users of a dApp can be given (and share) the governance of the Dapp’s
future behavior, through so-called governance tokens. Essentially, those bestow voting rights.
Source: Ethereum.org
• Usability: Many dApps have poor user interfaces, which can turn users away. For example, see
this reviews page. However, if a dApp survives, its usability often improves over time.
• Users: Like many Web2 apps, dApps benefit from the network effect, where more users improve the
network's efficiency. Many dApps struggle with low user numbers, which can reduce interactivity and
security, as a dApp’s security often depends on its user base.
Source: Decrypt
• The EVM compatibility may prove central to this vision as it allows for the consistent execution of smart
contracts across various blockchains, ensuring interoperability and simplifying development processes.
• Cross-Chain Communication Protocols will also be essential for omni-chain integration, these protocols
enable different blockchains to communicate and share information, vital for asset transfers and data
synchronization.
• Sidechains and Layer 2 Solutions can also enhance scalability and efficiency by offloading transactions
and processes from the main blockchain, crucial for supporting a multi-chain ecosystem without
overburdening individual networks.
• Blockchain Bridges are specialized tools or protocols that connect two or more blockchains, enabling the
transfer of assets and data between them, a key component in building an omni-chain environment.
Source: https://vitalik.ca/general/2021/04/07/sharding.htm
● The gas limit in Ethereum led to a transaction processing capacity of up to 20 transactions per second (TPS),
causing bottlenecks.
● High network demand and limited transaction capacity led to surging transaction fees, particularly during periods of
heavy network usage.
● This escalation in fees made Ethereum transactions increasingly costly for users, affecting the network's accessibility and
affordability.
● Furthermore complex dApps and the prioritization of transactions with higher fees by miners resulted in longer confirmation
times, with transaction speeds remaining relatively static despite the surge in fees.
● The high transaction fees and limited throughput disproportionately impacted smaller and newer users, who found it
challenging to compete with larger entities able to afford higher fees.
● The broader vision for blockchain includes revolutionizing digital transactions, facilitating DeFi, global payments,
and open markets, which necessitates support for support for high volumes of transactions, to ensure a global user
base can participate without excessive fees or delays.
Source: https://temtum.com/static/48f3605384983d404c16f221b8347e20/an-analysis-into-the-scalability-of-bitcoin-and-ethereum.pdf
Source: Coinmetrics
Ethereum’s Daily Average Gas Price (in Gwei), 2015-2023 Ethereum’s Daily Average Transaction Fee Chart (in USD), 2015-2023
Source: https://etherscan.io/charts
● Increasing Block Size: Expanding block capacity to ● Rollups (Optimistic and ZK-Rollups): Batching
accommodate more transactions. transactions off-chain for consolidated on-chain
● Sharding: Partitioning the blockchain into smaller, ● submission.
parallel-processing shards. ● State Channels: Establishing two-way channels for
● Optimized Block Propagation Techniques: transaction execution outside of the main chain.
Improving the efficiency of data transmission to ● Plasma Chains: Creating child blockchains for
quicken block propagation. off-loading transactions from the main chain.
● Segregated Witness (SegWit): Optimizing ● Validiums: Utilizing ZK proofs to batch transactions
transaction space within blocks by segregating off-chain while storing data off-chain.
signature data.
● Directed Acyclic Graphs (DAGs): Adopting a Other Solutions:
non-linear structure for faster, more flexible ● Sidechains: Running parallel chains with
transactions. independent consensus mechanisms.
5. Conclusions
Session: Ethereum: How It Works
Conclusions
• Ethereum's architecture supports decentralized applications (dApps) and smart contracts, offering
flexibility for diverse use cases beyond transactions.
• Smart contracts automate processes, removing intermediaries and enabling transparent,
decentralized applications.
• The Ethereum Virtual Machine (EVM) runs smart contracts securely across the decentralized
network.
• Gas fees power the network, incentivizing validators, with prices fluctuating based on network
demand.
• Proof of Stake (PoS), replacing Proof of Work (PoW), increases energy efficiency while maintaining
security and scalability.
• Ongoing upgrades like Proto-DankSharding and EIP-1559 aim to improve scalability and reduce
transaction costs.
• The blockchain trilemma -balancing scalability, decentralization, and security- remains a challenge
as Ethereum evolves to address all three simultaneously.
6. Further Reading
47
Session: Ethereum: How It Works
Further Reading
• Ethereum Whitepaper
https://ethereum.org/en/whitepaper/
• Antonopoulos, A.M. and Wood, G., 2018. Mastering ethereum: building smart contracts and dapps. O'reilly
Media.
https://github.com/ethereumbook/ethereumbook
• The Ethereum DeFi ecosystem:
https://defiprime.com/ethereum
• V. Buterin:
Who is Vitalik Buterin, Ethereum Creator? - Decrypt
• The Merge:
What Is 'The Merge'? Ethereum’s Move to Proof of Stake – Decrypt
• Ethereum’s Future:
Ethereum – Future and Present: Onward to the Surge, Verge, Purge and Splurge w/ Vitalik Buterin - YouTube
• Smart Contracts:
Smart contract – Wikipedia
Source: https://ethroadmap.com/
Twitter: @mscdigital
Course Support: [email protected]
IT & Live Session Support: [email protected]