5/5
## Understanding Layer 1, Layer 2, and Rollup Scaling Solutions The Ethereum network, like many foundational blockchains, faces a core challenge known as the Blockchain Trilemma. This concept posits that a blockchain can only optimize for two of three critical properties: decentralization, security, and scalability. Ethereum was designed to prioritize decentralization and security, which has made it the most robust and trusted smart contract platform. However, this focus comes at the cost of scalability, limiting the network to approximately 15 transactions per second. When demand is high, this limitation leads to network congestion and prohibitively expensive transaction fees, or "gas." To solve this, developers created scaling solutions that can increase transaction throughput without sacrificing the security and decentralization of the main network. The most prominent of these are Layer 2 solutions, particularly Rollups. This lesson breaks down these foundational concepts. ### What is a Layer 1 (L1) Blockchain? A Layer 1, or L1, is the base protocol of a blockchain ecosystem. It is the fundamental network responsible for maintaining its own security and reaching a consensus on the state of the ledger. An L1 operates independently and does not rely on any other network for finality or security. Because it serves as the ultimate source of truth where all transactions are eventually finalized, a Layer 1 is often referred to as the **Settlement Layer**. All transactions, including those processed on auxiliary layers, must ultimately settle on the L1 to be considered complete and irreversible. **Examples of Layer 1 Blockchains:** * Ethereum Mainnet * Bitcoin * Solana * BNB Chain * Ethereum testnets, like Sepolia, also function as L1s in their respective environments. ### What is a Layer 2 (L2) Blockchain? A Layer 2, or L2, is a separate blockchain protocol built *on top of* a Layer 1. Its primary purpose is to extend the capabilities of the L1, most notably to improve scalability. An L2 processes transactions on its own chain but "hooks back into" the L1, inheriting the robust security and decentralization of its parent layer. It is crucial to distinguish an L2 from a decentralized application (dApp). A dApp like Uniswap is a program that is deployed *on* an L1 blockchain. In contrast, an L2 is an entire, separate blockchain network designed to augment the L1 it is built upon. **Examples of Layer 2 Blockchains:** * ZKsync * Optimism (OP) * Arbitrum * Polygon ### Rollups: The Primary L2 Scaling Solution Rollups are the most widely adopted type of L2 scaling solution. They work by executing transactions on the L2 chain (off-chain from the L1 perspective) and then bundling, or "rolling up," hundreds of them into a single, compressed transaction batch. This single batch is then posted to the Layer 1 network. This process dramatically increases transaction throughput and reduces costs for end-users. The gas fee required to post the single batch to the L1 is shared across all the individual transactions contained within it, making each one significantly cheaper than if it were processed directly on the L1. There are two primary types of rollups, distinguished by how they prove the validity of their transaction batches to the L1: Optimistic Rollups and Zero-Knowledge Rollups. #### Optimistic Rollups Optimistic Rollups operate on the principle that all transactions in a batch are valid by default—an "optimistic" assumption. After an L2 operator posts a batch to the L1, a **Challenge Period** begins, which typically lasts about a week. During this window, any other network participant can scrutinize the batch. If they identify an invalid transaction, they can submit a **Fraud Proof** to the L1. This triggers a dispute resolution process on the L1 to verify the claim. * **If the fraud proof is successful:** The fraudulent batch is reverted, and the malicious operator who submitted it is penalized by having their staked collateral slashed. * **If the challenge period ends without a successful challenge:** The batch is considered final and is permanently recorded on the L1. The primary trade-off of this model is the long waiting period for transaction finality. Users must wait for the challenge period to conclude before they can withdraw their funds from the L2 back to the L1. #### Zero-Knowledge (ZK) Rollups Zero-Knowledge (ZK) Rollups take a different approach. Instead of assuming validity and waiting for challenges, they proactively prove the validity of every transaction batch using advanced cryptography. When a ZK-Rollup operator submits a batch to the L1, they also generate and submit a cryptographic **Validity Proof**, specifically a **Zero-Knowledge Proof (ZKP)**. This proof mathematically guarantees that all the state changes within the batch are correct and follow the network's rules. A smart contract on the L1, known as the **Verifier**, can instantly check this proof. If the proof is valid, the batch is accepted and finalized immediately. This eliminates the need for a lengthy challenge period, allowing for much faster withdrawals and finality compared to Optimistic Rollups. A key feature of the ZKPs used in most rollups is **succinctness**, meaning the proof is very small and fast to verify, even if it represents an immense amount of computation. For this reason, these are sometimes called **Succinct Rollups**. While most ZK-Rollups use this technology for scaling, some also leverage the "zero-knowledge" property to provide privacy, enabling secret balances and confidential transactions. These are often called ZK-ZK Rollups, with Aztec being a prominent example. ### Conclusion Layer 1 blockchains like Ethereum provide unmatched security and decentralization but struggle with scalability. Layer 2 solutions, and specifically Rollups, solve this problem by processing transactions on a separate, faster layer while inheriting the security of the L1. Optimistic Rollups achieve this through a fraud-proof system with a time delay, while ZK-Rollups use cryptographic validity proofs for instant finality. Together, these technologies enable the Ethereum ecosystem to scale, paving the way for mainstream adoption.
The Ethereum network, like many foundational blockchains, faces a core challenge known as the Blockchain Trilemma. This concept posits that a blockchain can only optimize for two of three critical properties: decentralization, security, and scalability. Ethereum was designed to prioritize decentralization and security, which has made it the most robust and trusted smart contract platform. However, this focus comes at the cost of scalability, limiting the network to approximately 15 transactions per second. When demand is high, this limitation leads to network congestion and prohibitively expensive transaction fees, or "gas."
To solve this, developers created scaling solutions that can increase transaction throughput without sacrificing the security and decentralization of the main network. The most prominent of these are Layer 2 solutions, particularly Rollups. This lesson breaks down these foundational concepts.
A Layer 1, or L1, is the base protocol of a blockchain ecosystem. It is the fundamental network responsible for maintaining its own security and reaching a consensus on the state of the ledger. An L1 operates independently and does not rely on any other network for finality or security.
Because it serves as the ultimate source of truth where all transactions are eventually finalized, a Layer 1 is often referred to as the Settlement Layer. All transactions, including those processed on auxiliary layers, must ultimately settle on the L1 to be considered complete and irreversible.
Examples of Layer 1 Blockchains:
Ethereum Mainnet
Bitcoin
Solana
BNB Chain
Ethereum testnets, like Sepolia, also function as L1s in their respective environments.
A Layer 2, or L2, is a separate blockchain protocol built on top of a Layer 1. Its primary purpose is to extend the capabilities of the L1, most notably to improve scalability. An L2 processes transactions on its own chain but "hooks back into" the L1, inheriting the robust security and decentralization of its parent layer.
It is crucial to distinguish an L2 from a decentralized application (dApp). A dApp like Uniswap is a program that is deployed on an L1 blockchain. In contrast, an L2 is an entire, separate blockchain network designed to augment the L1 it is built upon.
Examples of Layer 2 Blockchains:
ZKsync
Optimism (OP)
Arbitrum
Polygon
Rollups are the most widely adopted type of L2 scaling solution. They work by executing transactions on the L2 chain (off-chain from the L1 perspective) and then bundling, or "rolling up," hundreds of them into a single, compressed transaction batch. This single batch is then posted to the Layer 1 network.
This process dramatically increases transaction throughput and reduces costs for end-users. The gas fee required to post the single batch to the L1 is shared across all the individual transactions contained within it, making each one significantly cheaper than if it were processed directly on the L1.
There are two primary types of rollups, distinguished by how they prove the validity of their transaction batches to the L1: Optimistic Rollups and Zero-Knowledge Rollups.
Optimistic Rollups operate on the principle that all transactions in a batch are valid by default—an "optimistic" assumption. After an L2 operator posts a batch to the L1, a Challenge Period begins, which typically lasts about a week.
During this window, any other network participant can scrutinize the batch. If they identify an invalid transaction, they can submit a Fraud Proof to the L1. This triggers a dispute resolution process on the L1 to verify the claim.
If the fraud proof is successful: The fraudulent batch is reverted, and the malicious operator who submitted it is penalized by having their staked collateral slashed.
If the challenge period ends without a successful challenge: The batch is considered final and is permanently recorded on the L1.
The primary trade-off of this model is the long waiting period for transaction finality. Users must wait for the challenge period to conclude before they can withdraw their funds from the L2 back to the L1.
Zero-Knowledge (ZK) Rollups take a different approach. Instead of assuming validity and waiting for challenges, they proactively prove the validity of every transaction batch using advanced cryptography.
When a ZK-Rollup operator submits a batch to the L1, they also generate and submit a cryptographic Validity Proof, specifically a Zero-Knowledge Proof (ZKP). This proof mathematically guarantees that all the state changes within the batch are correct and follow the network's rules.
A smart contract on the L1, known as the Verifier, can instantly check this proof. If the proof is valid, the batch is accepted and finalized immediately. This eliminates the need for a lengthy challenge period, allowing for much faster withdrawals and finality compared to Optimistic Rollups.
A key feature of the ZKPs used in most rollups is succinctness, meaning the proof is very small and fast to verify, even if it represents an immense amount of computation. For this reason, these are sometimes called Succinct Rollups.
While most ZK-Rollups use this technology for scaling, some also leverage the "zero-knowledge" property to provide privacy, enabling secret balances and confidential transactions. These are often called ZK-ZK Rollups, with Aztec being a prominent example.
Layer 1 blockchains like Ethereum provide unmatched security and decentralization but struggle with scalability. Layer 2 solutions, and specifically Rollups, solve this problem by processing transactions on a separate, faster layer while inheriting the security of the L1. Optimistic Rollups achieve this through a fraud-proof system with a time delay, while ZK-Rollups use cryptographic validity proofs for instant finality. Together, these technologies enable the Ethereum ecosystem to scale, paving the way for mainstream adoption.
A foundational primer to Understanding Layer 1, Layer 2, and Rollup Scaling Solutions - Learn why secure blockchains like Ethereum need scaling solutions to handle high demand. This lesson breaks down how L2 Rollups work, contrasting the "trust-but-verify" model of Optimistic Rollups with the cryptographic certainty of ZK-Rollups.
Previous lesson
Previous
Next lesson
Next
Give us feedback
Course Overview
About the course
What blockchains are and how they work
Key blockchain components: wallets, gas, nodes, consensus
How to send transactions
The role and risks of smart contracts
How blockchains scale with L2 rollups
Real-world use cases like DEXs, RWAs, stablecoins, and NFTs
Blockchain threats like MEV and Sybil attacks
The lifecycle of a blockchain transaction
Security researcher
$49,999 - $120,000 (avg. salary)
Web3 developer
$60,000 - $150,000 (avg. salary)
Smart Contract Engineer
$100,000 - $150,000 (avg. salary)
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
Web3 Developer Relations
$85,000 - $125,000 (avg. salary)
Last updated on October 17, 2025
Duration: 20min
Duration: 1h 16min
Duration: 50min
Duration: 2h 02min
Duration: 41min
Duration: 36min
Duration: 7min
Certification: Blockchain Basics
This proficiency exam is designed to confirm your understanding of all key concepts and learnings presented in the course material. You will have 45 minutes to answer 30 questions and score 18 to pass and earn a Certificate of Completion.
Course Overview
About the course
What blockchains are and how they work
Key blockchain components: wallets, gas, nodes, consensus
How to send transactions
The role and risks of smart contracts
How blockchains scale with L2 rollups
Real-world use cases like DEXs, RWAs, stablecoins, and NFTs
Blockchain threats like MEV and Sybil attacks
The lifecycle of a blockchain transaction
Security researcher
$49,999 - $120,000 (avg. salary)
Web3 developer
$60,000 - $150,000 (avg. salary)
Smart Contract Engineer
$100,000 - $150,000 (avg. salary)
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
Web3 Developer Relations
$85,000 - $125,000 (avg. salary)
Last updated on October 17, 2025