Skip to content

Commit 6b1188b

Browse files
author
jarrodwatts
committed
what are layer 2s
1 parent ea0ff6d commit 6b1188b

File tree

3 files changed

+399
-0
lines changed

3 files changed

+399
-0
lines changed

docs/cdk/concepts/layer2s.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,21 @@
11
# What is a Layer 2 Blockchain?
2+
3+
Layer 2 (L2) blockchains are scaling solutions, typically built on top of Ethereum (L1) that are designed to increase transaction throughput without sacrificing decentralization or security.
4+
5+
While L2s are their own chains, they are considered "extensions" of Ethereum. Users can submit transactions directly to L2 chains, which handle them more efficiently (in terms of cost and speed) than Ethereum.
6+
7+
Under the hood, L2s create "batches" of transactions, and periodically submit many batches to Ethereum as a single transaction; potentially including information on thousands of transactions that occurred on the L2 in a single transaction on Ethereum.
8+
9+
Typically, L2s deploy smart contracts to Ethereum that handle the verification of these batches, ensuring that the transactions are valid. Since this verification process occurs on Ethereum, it is often said that L2s inherit the security of Ethereum.
10+
11+
![L2 Batching Overview](../../img/cdk/l2-overview-diagram.svg)
12+
13+
## Types of Layer 2s
14+
15+
L2s come in different shapes and sizes in terms of their relationship with Ethereum; each design decision comes with trade-offs in terms of security, scalability, decentralization, etc.
16+
17+
For example, some L2s such as the Polygon zkEVM send all transaction data to Ethereum, whereas other L2s only send information about the state differences, or choose to not send transaction data to Ethereum at all; instead relying on different data availability mechanisms.
18+
19+
As storing information on Ethereum is expensive, building an L2 chain requires a balance between security, decentralization and scalability. The CDK provides developers with the tools to make these trade-offs and build a chain that meets their specific needs depending on their use case.
20+
21+
![zkEVM Rollup vs Validium](../../img/cdk/zkevm-rollup-validium.png)

0 commit comments

Comments
 (0)