Kerman Kohli

Share this post
Understanding the L2 Race
kermankohli.substack.com

Understanding the L2 Race

A follow-on about the multi-chain future

Kerman Kohli
Mar 11, 2021
2
Share this post
Understanding the L2 Race
kermankohli.substack.com

After posting last week’s article, I started getting a lot of messages and questions about the layer 2 landscape and why I’m not as optimistic despite some amazing progress being made all across the ecosystem. Rather than leaving it for another day, I thought this would be the perfect follow-up article to last week’s article: https://defiweekly.substack.com/p/the-multi-chain-universe-is-here


The Flavours of “L2”

Before we get into the various teams, where they’re at and what they’re doing I thought I’d list what I include in my definition of L2 but also explaining what they mean. Here’s a cool picture to show the entire landscape as well:

  1. Mainchains. These are your L1s that you know and love/hate such as Etheruem, Polkadot, Solana, Near etc etc. Older ones such as Etheruem have reached a very healthy amount of decentralization and it’s basically a fact that you can’t “hack” these chains since the cost of doing so is worth far less than any attack you could launch. This is very important for things such as DeFi where tens of billions of dollars worth of value is secured. They’re great except for the fact that Ethereum, the OG is reaching capacity. What makes L1s great is that it’s a single playground where everyone can play together no qualms whatsoever.

  2. Sidechains (kind of L2). Think of them as “sister chains” where assets can move between each chain but the sidechain has its own technology as to how it achieves decentralisation. The argument here is that you can sacrifice some level of decentralisation for the higher throughput and users who want more security guarantees. Many of them still use checkpoints to borrow from the security of the main chain. I classify them as L2s for argument’s sake but they’re a hybrid of an L2/L1.

  3. Optimistic Roll ups & ZK Roll ups (actuals L2s). The main difference between system such as Optimism’s Rollup, Starkware’s ZK-STARKs, Matter Labs’ zkSync versus the rest of the market is that all of these aim to use the underlying security of the main-chain they’re hosted on. The best way to think of them are these isolated system where you can do a bunch of computation, save it on the main-chain and the isolated system is backed by math/game theory rather than PoS/PoA schemes as commonly seen with sidechains. These are meant to be as secure as the main chain, fast but their main issue (for now) is that general purpose is still hard to achieve. If you’re getting your pitchforks out with this statement, hold on - we’ve still got the rest of the article ahead of us.


Digging Deeper

So now that we’ve on the same page about all the trade-offs, the high level race going on in the industry is that people want a solution that is:

a) As secure as Ethereum

b) Fast and cheap to use

c) Interoperable/bridged with Etheruem

While this discussion is highly relevant to multi-chain, we’re going to put it aside for a second and keep our focus purely on Layer 2. I’m also going to put a disclaimer that I am not an expert on layer 2 scaling solutions and in the weeds of everything going on. My purpose for writing this article is to give an objective, high level view of what I see going on in the landscape of L2s and the reasoning around it. I’m super grateful for the teams that ship and are iterating tirelessly to deliver us this future. At a high level we have 3 main contenders at the moment in our race to fame:

  1. Optimism Labs. a16z led their recent $25m round. Current protocols they’ve signed up are: Uniswap, Maker, Synthetix, Chainlink, Rari Capital and probably a few more under stealth. This blog post by a16z is a pretty good write-up of what they’re doing and more background info: https://a16z.com/2021/02/24/investing-in-optimism/. The team that Optimism has rallied is pretty incredible if you dig deeper.

  2. Matter Labs (zkSync). Backed by USV, 1kx, Dragonfly and a few other global investors. They closed a recent ecosystem round with a bunch of top DeFi protocols that will most likely use them. This list includes: Curve, Aave, Balance, 1inch, Loopring and more. Matter has done an impressive job at getting a lot of ecosystem buy-in.

  3. StarkWare (StarkExchange). Backed by Paradigm, Sequoia, Naval and more, they’re another force to be taken seriously. The special thing about Starkware is that Eli Ben Sasson, their chief scientist, is arguably the most knowledgeable person in the world when it comes to zero knowledge proofs. I’ve had the privilege of getting some Zero Knowledge (ZK) math lessons from him myself! Anyways, they’ve secured dYdX, DiversiFi, Rari Capital and Immutable X and are live with half of the list already.

I’d love to give a shoutout to Polygon and Loopring here. I’ll write a piece about them in the future but for the scope of this article I’d like to keep it narrow and focused with close competitors.

Not only are each of these teams incredibly impressive with their talent + backers, they’re all going for the a similar market: the dominant, general purpose, layer 2 smart contract platform of choice. Before we get into the details of where they’re at, I want to take some time explaining the technical choices made by each of these teams.

At a high level, your mental model should be thinking about two distinct approaches to the underlying security. Optimism = Optimistic Rollups. Starkware & zkLabs = Zero Knowledge Rollups. Here is a tweet storm from Ali Atiia that outlines it perfectly:

Twitter avatar for @aliatiia_Ali Atiia @aliatiia_
Rollups. So you heard about the optimistic vs zk rollups, listened to the debates and read the twitter threads but you're lost. Intuition: imagine validity (ZK) and fraud (optimistic) proofs not being about state transition functions (wa?), but about two cities you're... 2/6

November 29th 2020

7 Retweets24 Likes
Twitter avatar for @aliatiia_Ali Atiia @aliatiia_
...thinking of immigrating to. At the ZK city gate, the guard tells u: no one can trespass into ur property because to do so they need to break what is otherwise widely believed to be unbreakable math. That's why houses are shaped like Greek letters, it's a math thing ..3/6

November 29th 2020

1 Retweet10 Likes
Twitter avatar for @aliatiia_Ali Atiia @aliatiia_
At the Optimistic city gate, the guard tells you: no sane person would dare trespass into your property because if they did, any citizen is authorized to shoot them and collect a hefty bounty, hence the drones you see all over the place ..4/6

November 29th 2020

1 Retweet12 Likes
Twitter avatar for @aliatiia_Ali Atiia @aliatiia_
So which city would you choose? Think of the worse case scenarios (e.g. extreme foggy weather where drones lose vision (=miners censoring fraud proof reporting)) If you keep thinking about this metaphor your intuition would .. 5/6

November 29th 2020

8 Likes

So TLDR: Optimistic assumes that everything is okay unless said otherwise. Zero Knowledge Rollups don’t make any assumption and explicitly check that everything is okay via complex mathematics and cryptography.

Okay so where does this leave us? Here’s where it gets interesting.

I hate paywalls as much as you do, however I want to make sure I can continue to write amazing content for you all. Subscribing is a gesture that I’d personally really appreciate since it allows me to keep making DeFi Weekly even better.

Share
Share this post
Understanding the L2 Race
kermankohli.substack.com
TopNewCommunity

No posts

Ready for more?

© 2022 Kerman Kohli
Privacy ∙ Terms ∙ Collection notice
Publish on Substack Get the app
Substack is the home for great writing