Back to courses
Part 3: Additional Deep Dives (courses 4016–4169) beginner

Demystifying Layer 2 solutions

Duration0 hours
Modules7
ForGeneral public, lifelong learners
Video1-2min
Get started — free →

Course outline

Module 1 Module 1: Why Layer 2 Exists: The Blockchain Scalability Problem

Why Layer 2 Exists: The Blockchain Scalability Problem

Introduction

Core content I

Core content II

Core content III

Summary

Further learning

Knowledge check

Q1. What is the primary reason Layer 2 solutions were developed for blockchains like Ethereum?
  • A. To replace the blockchain with a centralized database
  • B. To increase transaction throughput and reduce fees without changing the base layer's security model
  • C. To make blockchains completely private and anonymous
  • D. To eliminate the need for cryptographic signatures
Q2. Why do blockchains often struggle to process large numbers of transactions quickly?
  • A. Because every node must process and verify every transaction, creating a bottleneck
  • B. Because transactions are stored only on paper records
  • C. Because blockchains do not use any computers
  • D. Because transactions are deliberately delayed to prevent fraud
Q3. What is the 'blockchain trilemma' commonly used to describe?
  • A. The difficulty of choosing between three different cryptocurrency wallets
  • B. The tradeoff between decentralization, security, and scalability, where improving one often compromises the others
  • C. The three stages of mining a new block
  • D. The three types of consensus algorithms that are all equally efficient
Q4. In simple terms, what does a Layer 2 network do?
  • A. It processes transactions off the main chain and periodically settles results back to Layer 1
  • B. It replaces Layer 1 entirely with a new blockchain
  • C. It stores all user data in a separate password-protected file
  • D. It removes the need for any transaction fees anywhere
Q5. Why is a higher block size alone not considered a complete solution to blockchain scalability?
  • A. Larger blocks make the network more demanding to run, which can reduce the number of nodes and centralize the network
  • B. Larger blocks are illegal in most countries
  • C. Larger blocks always cause transactions to be lost permanently
  • D. Larger blocks prevent any wallet from connecting to the network
Module 2 Module 2: Core Concepts: Rollups, Sidechains, and State Channels

Core Concepts: Rollups, Sidechains, and State Channels

Introduction

Core content I

Core content II

Core content III

Summary

Further learning

Knowledge check

Q1. What is the primary purpose of a Layer 2 solution in blockchain networks?
  • A. To replace the Layer 1 blockchain with a completely new consensus mechanism
  • B. To process transactions off or alongside the main chain to improve scalability and reduce fees ✓
  • C. To store all historical blockchain data on a separate network
  • D. To make wallets compatible with multiple Layer 1 blockchains

Why: Layer 2 solutions handle transactions outside or alongside the base layer (Layer 1) to increase throughput and lower costs, while still relying on Layer 1 for security and final settlement.

Q2. How do optimistic rollups verify the validity of transactions?
  • A. They require every transaction to include a zero-knowledge proof
  • B. They assume transactions are valid by default and allow a challenge period for fraud proofs ✓
  • C. They have a committee of validators vote on each transaction individually
  • D. They verify each transaction on Layer 1 immediately before batching

Why: Optimistic rollups post transaction batches to Layer 1 and assume they are valid. During a challenge window, anyone can submit a fraud proof to dispute an invalid batch, which is why withdrawals often take days.

Q3. What is a key difference between a sidechain and a rollup?
  • A. Sidechains always use zero-knowledge proofs while rollups never do
  • B. Sidechains have their own independent consensus and security, while rollups inherit security from the Layer 1 chain ✓
  • C. Rollups cannot process smart contracts while sidechains can
  • D. Sidechains are only used for token transfers while rollups are used for NFTs

Why: A sidechain runs its own consensus and validators, so its security is separate from the parent chain. Rollups post data or proofs back to Layer 1, inheriting its security guarantees.

Q4. In a state channel, what happens on the blockchain when participants are done transacting?
  • A. Every off-chain transaction is replayed on the main chain for verification
  • B. Only the final state is submitted to the blockchain to settle the balances ✓
  • C. The channel is automatically converted into a sidechain
  • D. Each participant must mine a block containing their individual transactions

Why: State channels let parties transact off-chain many times, opening and closing with on-chain transactions. Only the opening and final settlement state touch the blockchain, drastically reducing on-chain load.

Q5. Which of the following is a common use case well suited to state channels?
  • A. Publicly broadcasting a token launch to thousands of unknown users
  • B. Frequent micropayments between a fixed pair of parties, such as streaming payments ✓
  • C. Storing large media files permanently on a blockchain
  • D. Electing a national government through a public ledger

Why: State channels excel when a small, known group of participants transacts repeatedly, such as micropayments or games, because the many intermediate updates happen off-chain at near-zero cost.

Module 3 Module 3: Optimistic Rollups: Fraud Proofs and Challenge Periods

Optimistic Rollups: Fraud Proofs and Challenge Periods

Introduction

Core content I

Core content II

Core content III

Summary

Further learning

Knowledge check

Q1. What is the core assumption behind an optimistic rollup?
  • A. Every transaction must be verified by zero-knowledge proofs before posting to Layer 1
  • B. State transitions are assumed valid unless someone proves otherwise during a challenge period
  • C. Validators must stake tokens and vote on each batch before it is accepted
  • D. Transactions are executed only on Layer 1 and merely summarized on Layer 2
Q2. What is a fraud proof in an optimistic rollup?
  • A. A cryptographic proof that hides transaction details from the public
  • B. A demonstration that a posted state root is incorrect, typically by showing a disputed computation step on Layer 1
  • C. A signature from the sequencer confirming that no fraud occurred
  • D. A user's request to withdraw funds before the challenge period ends
Q3. Why do optimistic rollups typically have a challenge period of about 7 days for withdrawals?
  • A. Layer 1 requires a week to finalize any transaction
  • B. It gives honest parties enough time to detect fraudulent state roots and submit a fraud proof
  • C. Users need a week to generate zero-knowledge proofs for their withdrawals
  • D. Sequencers must wait a week before they are paid for their batches
Q4. Who is able to submit a fraud proof in a typical optimistic rollup?
  • A. Only the sequencer that posted the batch
  • B. Only the Layer 1 validators selected by the protocol
  • C. Any honest observer who runs a node and can detect the invalid state transition
  • D. Only the rollup's development team with administrative keys
Q5. What happens to a sequencer if a valid fraud proof is submitted against its batch?
  • A. It is allowed to resubmit the same batch with a higher fee
  • B. Its batch is reverted and it is typically penalized, such as by losing a bond
  • C. Its transactions are moved to a new blockchain automatically
  • D. Nothing happens, since the state root was already posted to Layer 1
Module 4 Module 4: ZK Rollups: Validity Proofs and Cryptographic Guarantees

ZK Rollups: Validity Proofs and Cryptographic Guarantees

Introduction

Core content I

Core content II

Core content III

Summary

Further learning

Knowledge check

Q1. What is the primary role of a validity proof in a ZK rollup?
  • A. To store all transaction data permanently on the Layer 1 chain
  • B. To cryptographically prove that a batch of off-chain transactions was executed correctly ✓
  • C. To allow users to vote on which transactions should be included in a block
  • D. To encrypt transaction amounts so that no one can see them

Why: A validity proof (such as a zk-SNARK or zk-STARK) lets the Layer 1 verifier confirm that every transaction in a batch followed the protocol rules, without re-executing each transaction individually.

Q2. How does a ZK rollup differ from an optimistic rollup in how it handles correctness?
  • A. ZK rollups assume transactions are invalid until proven valid by a vote
  • B. ZK rollups use cryptographic proofs that are verified upfront, while optimistic rollups assume validity and rely on a challenge period ✓
  • C. ZK rollups do not post any data to Layer 1
  • D. ZK rollups require users to manually check every transaction

Why: ZK rollups submit a validity proof with each batch, so correctness is verified immediately. Optimistic rollups assume batches are valid and allow a window during which anyone can submit a fraud proof to challenge them.

Q3. What is the main advantage of the succinctness property of zk-SNARKs for rollups?
  • A. The proof can be verified quickly and cheaply on Layer 1, regardless of how many transactions it covers ✓
  • B. The proof reveals the full contents of every transaction
  • C. The proof requires no computation to generate
  • D. The proof eliminates the need for any Layer 1 security

Why: Succinctness means a small proof can attest to a large computation. Layer 1 verification cost stays nearly constant, which lets rollups compress many transactions into one cheap on-chain check.

Q4. Which statement best describes the zero-knowledge property in a ZK rollup context?
  • A. Transactions are hidden from everyone, including the sequencer
  • B. The validity proof can be verified without revealing private inputs such as the witness data used to generate it ✓
  • C. The rollup operator has no knowledge of how the proof was made
  • D. Zero-knowledge means the rollup does not use cryptography

Why: Zero-knowledge means the proof convinces the verifier that a statement is true without disclosing the private information used to construct it. It is distinct from privacy of all rollup data, since many ZK rollups still publish transaction data.

Q5. Why do ZK rollups still typically post transaction data to Layer 1?
  • A. Layer 1 requires all data to be stored in order to verify the validity proof
  • B. Posting data allows anyone to reconstruct the rollup state and exit or verify independently, preserving data availability ✓
  • C. The validity proof is mathematically incomplete without the raw transactions
  • D. Layer 1 charges less for data than for proofs

Why: The validity proof confirms correctness, but users still need access to state data to rebuild balances and withdraw funds if the operator fails. Posting data to Layer 1 ensures data availability and keeps the system trust-minimized.

Module 5 Module 5: Bridging Assets: Deposits, Withdrawals, and Security Risks

Bridging Assets: Deposits, Withdrawals, and Security Risks

Introduction

Core content I

Core content II

Core content III

Summary

Further learning

Knowledge check

Q1. What is the primary purpose of a bridge in the context of Layer 2 blockchain solutions?
  • A. To permanently convert Layer 1 tokens into a new cryptocurrency
  • B. To move assets between Layer 1 and Layer 2 networks
  • C. To increase the block size of the main Ethereum chain
  • D. To generate staking rewards on Layer 1 validators
Q2. When a user deposits ETH from Ethereum mainnet into an optimistic rollup, what typically happens on the Layer 2 side?
  • A. The user receives nothing until the Layer 2 is shut down
  • B. Equivalent ETH is minted or credited on the Layer 2 after the deposit is confirmed on Layer 1
  • C. The user must manually mine new ETH on the Layer 2
  • D. The deposited ETH is burned and replaced with a different token
Q3. What is the challenge period in an optimistic rollup withdrawal?
  • A. A waiting window, commonly about seven days, during which fraud proofs can be submitted to dispute an invalid state root
  • B. The time needed to create a new wallet address
  • C. A mandatory delay before any deposit can be made
  • D. The period during which gas prices are fixed
Q4. Which security risk is specific to bridges that hold pooled liquidity or custody of user funds?
  • A. Block production delays on the source chain
  • B. Smart contract exploits or compromised keys that can drain the locked funds
  • C. Users forgetting their wallet passwords
  • D. Higher transaction fees during network congestion
Q5. Why do ZK rollup withdrawals typically finalize faster than optimistic rollup withdrawals?
  • A. ZK rollups skip all verification steps entirely
  • B. ZK rollups submit validity proofs that are verified on Layer 1 without a lengthy challenge window
  • C. ZK rollups allow withdrawals to be processed by any user without proof
  • D. ZK rollups do not require any data to be posted to Layer 1
Module 6 Module 6: Developer Tooling: Building and Deploying on Layer 2

Developer Tooling: Building and Deploying on Layer 2

Introduction

Core content I

Core content II

Core content III

Summary

Further learning

Knowledge check

Q1. Which of the following best describes the primary purpose of a Layer 2 solution?
  • A. To replace the base blockchain's consensus mechanism entirely with a new one
  • B. To process transactions off the main chain while inheriting its security guarantees
  • C. To store all historical blockchain data on a separate network
  • D. To issue a new native cryptocurrency independent of the base layer
Q2. When deploying a smart contract to an EVM-compatible Layer 2 network, what is a key advantage for developers?
  • A. They must rewrite all contracts in a completely new programming language
  • B. Existing Solidity contracts and familiar tooling like Hardhat or Foundry often work with minimal changes
  • C. Contracts can no longer call other contracts on the network
  • D. Gas fees are guaranteed to be zero for all transactions
Q3. What is a common step when configuring a development environment to deploy to a Layer 2 testnet?
  • A. Disabling all encryption on the local machine
  • B. Adding the network's RPC URL, chain ID, and a funded testnet account to the project configuration
  • C. Mining blocks locally to generate the testnet
  • D. Converting the contract bytecode to a non-EVM format
Q4. Why do developers typically test on a Layer 2 testnet before deploying to mainnet?
  • A. Testnet transactions are the only ones that can be verified by block explorers
  • B. Mainnet deployments are mandatory only after a testnet has been running for a year
  • C. To catch bugs and verify configuration using test tokens, avoiding real financial loss
  • D. Testnets are required to generate the mainnet's cryptographic keys
Q5. What is the role of a bridge in a Layer 2 ecosystem?
  • A. It permanently merges the Layer 2 chain into the Layer 1 chain
  • B. It deletes transaction history to reduce network congestion
  • C. It transfers assets between Layer 1 and Layer 2 networks
  • D. It replaces the need for wallets when signing transactions
Module 7 Module 7: The Future of Layer 2: Interoperability, Decentralization, and Trade-offs

The Future of Layer 2: Interoperability, Decentralization, and Trade-offs

Introduction

Core content I

Core content II

Core content III

Summary

Further learning

Knowledge check

Q1. What is the primary purpose of a Layer 2 solution in blockchain networks?
  • A. To replace the base layer blockchain entirely with a new consensus mechanism
  • B. To process transactions off the main chain and improve scalability while inheriting the security of Layer 1 ✓
  • C. To store all historical data of the blockchain in a separate database
  • D. To create new cryptocurrencies that compete with Layer 1 tokens

Why: Layer 2 solutions handle transactions off the main chain to increase throughput and reduce fees, while periodically anchoring their state to Layer 1 so they inherit its security guarantees.

Q2. Which term describes the ability of different Layer 2 networks to communicate and transfer assets or messages with one another?
  • A. Sharding
  • B. Interoperability ✓
  • C. Finality
  • D. Forking

Why: Interoperability refers to the capacity of separate blockchains or Layer 2 networks to exchange assets and data, which is a key challenge as the ecosystem fragments across many rollups and sidechains.

Q3. What is a common trade-off when a Layer 2 solution uses a small set of sequencers to order transactions?
  • A. Higher decentralization but slower transaction speeds
  • B. Faster and cheaper transactions but reduced decentralization and potential censorship risk ✓
  • C. Guaranteed immunity from all smart contract bugs
  • D. Automatic elimination of all bridge risks

Why: Centralized sequencers can process transactions quickly and cheaply, but if few operators control ordering, they become a single point of failure and could censor or reorder transactions.

Q4. Why is decentralization often considered a challenge for Layer 2 networks in their current development stage?
  • A. Because Layer 2 networks never use cryptographic proofs
  • B. Because many Layer 2 networks still rely on a single or small group of operators for key functions like sequencing and upgrades ✓
  • C. Because Layer 2 networks cannot store any transaction data
  • D. Because Layer 2 networks are legally prohibited from being decentralized

Why: Many Layer 2s are in early stages where a central team controls sequencing, proof generation, or upgrade keys, so decentralizing these functions is an ongoing goal for the ecosystem.

Q5. What is a bridge in the context of Layer 2 interoperability?
  • A. A consensus algorithm that merges two blockchains into one
  • B. A mechanism that transfers assets or data between different chains, which often introduces additional security risks ✓
  • C. A type of wallet that stores private keys offline
  • D. A governance proposal to change a network's block size

Why: Bridges move assets or messages between chains, but because they often hold locked funds and rely on complex code or trusted parties, they have been a frequent target for hacks.

Stay in the loop on this course.

We’ll email you when new modules or related material drops. No spam.

Built with Fragment Language. Sovereign architecture — no third-party trackers.
FragRun.mfgAFImemoryFGOwnership: B-Systems.ee