The One Question bounty closes Thursday 10 December.

Join in
We Them Media logo We Them Media Support us

Quick Review: Blockchain Layer Two Solutions Explained

The picture loads from YouTube. The player loads only when you press Play. Turn on captions in the player if you need them.

A speaker explains layer 2 solutions as a response to the trilemma of security, decentralization and scalability, noting that Ethereum is secure and decentralized but slow to scale. They compare optimistic and zero-knowledge rollups and walk through how a StarkNet transaction moves from a sequencer to a prover and then a verifier contract on Ethereum.

Not by We Them Media Channel: Web3Bridge. Published Thursday 11 July 2024.

Titles are the owner’s. It plays from their channel.

Transcript

This transcript may contain errors. This video belongs to Web3Bridge. Letters mark each change of speaker.

These are the speakers’ own words. We have not checked their claims.

0:00 A: This week I'm going to be sharing with us about, um, Layer 2s, basically very popular term in Web3 and blockchain space generally, but not so many people understand the concept.

0:10 B: So you all agree with me that blockchain is an amazing technology, taking, um, Ethereum into case study, but there's a very big problem that blockchains face, which is the trilemma problem.

0:27 A: Um, we've not found a single blockchain that can solve all 3. The first one is the problem of centralization. Security and scalability.

0:34 B: The characteristics of a full blockchain is, um, it must be secured, decentralized, and also be scalable.

0:40 A: Ethereum, as we all know, has been able to, you know, solve the problem of decentralization and security, but it's not very scalable. Herein comes the birth of Layer 2 solutions.

0:50 C: Layer 2 solutions are solutions that are built on the Layer 1. When I say Layer 1, I'm talking about the base blockchain like Ethereum and Bitcoin.

0:57 D: So just like saying you have a Layer 1 and you build a solution, you build a protocol on top of it. stop it. So these solutions, this technology, these protocols, they are meant to address problems on Layer 1.

1:12 E: So basically Layer 1s are just Ethereum, Bitcoin.

1:17 A: Basically Layer 2 solutions are blockchain-based solutions that help Ethereum to scale. Basically there are many different types. We have one of the very popular L2s, Polygon, which is a sidechain. We have Optimistic Ethereum, which is an optimistic rollup. We have many others. We have Vera chains, we have zero-knowledge

1:35 C: We have 2 types of Layer 2 solutions. We have the optimistic rollups and the ZK rollups.

1:41 D: What rollups do is they bundle up transactions and then they submit the finality to the mainnet or to the Layer 1.

1:50 E: So optimistic rollups basically allow smart contracts to be executed off-chain, while zero-knowledge allows privacy, improves the privacy when transactions are being verified without revealing any sensitive data. How it does that is that it's

2:07 B: kind of like abstract requests. And, you know, it's like an abstract network that receives requests as well and then batches it up using either zero-knowledge or optimistic rollups. So, and then later on sends it to the layer 1 solutions. So first and foremost, when you run a transaction on StarkNet, it first goes through the sequencer. So the sequencer just groups all the transactions batch them together. They can batch as many transactions, thousands of transactions as possible. So after it batches those transactions through the sequencer, the sequencer sends these transactions to the prover. The prover then generates a proof in the Layer 2, and then it sends that proof to a smart contract in the Layer 1, which is Ethereum. And then this smart contract in Layer 1 is called a verifier contract. So it verifies that that proof really exists in the Layer 2. After it verifies that, then it saves the information in the StarkNet core contract in Ethereum Layer 1. So this is how Starknets are able to achieve scalability.

More from this hub

Something wrong, or a video you want off this page? Write to wethem.xyz@gmail.com and it is fixed or taken down within 48 hours.