Ways of Scaling Ethereum: Offchain and Onchain
ETHCC 7 · 10 Jul 2024 · 16:51
Yiğit Yektin, a researcher at IT Blockchain, surveys ways of scaling Ethereum without giving up decentralisation. He covers sharding, danksharding and blobs, then plasma, state channels, optimistic and ZK rollups, validium and sidechains. He argues sidechains offer more flexibility over consensus and block size, though they must borrow security. He then describes a Lambda Class design that uses EigenLayer as an AVS, ZK Stack sidechains aggregated through an elastic chain, and settlement to Mina.
Speakers
Topics
From ETHCC 7, hosted by Ethereum France.
Transcript
Okay. Yeah, uh hi everyone. Uh most of you are my colleges, but I am here uh as a part of IT blockchain in the I'm working in the research team, and I'm also uh doing some research on the inverter network. We are working uh working on the token issues and modularity of bonding curves. So uh today I'll be talking about the ways of scaling Ethereum. Uh firstly, I uh do an abstract of what we have and why we could uh we use side chains right now in the newest technologies. So let's start.
Uh what was our vision? Uh it is the making the world's biggest computer to be accessible by everyone. I mean with the uh TPS, yeah. I mean transaction per second should be accessible for everyone. The network should be accessible for everyone, not uh like permissions uh things should be exist in the networks. Uh how we do it without giving up on decentralization, uh security and improvements. Uh because some uh networks have don't have like improvement proposals ongoing, uh but Ethereum has, and it's uh I think the biggest power of Ethereum. Uh and what uh we talked about scaling.
Scaling is we need more transaction per second, we need more transaction speed, and we need uh all the work done with less hardware required requirements. Yeah, so uh one of our uh solutions is sharding. Uh actually, only one of the layer twos using sharding right now in live. Uh sharding is the dividing the work of uh I mean all of the stuff like data could be divided and other things, but we are only storing the confirmations, I mean the transaction confirmations uh to the nodes. Uh what are the nodes right now?
We have light nodes, full nodes, and R2 nodes, Rshi nodes are the part of full nodes. Uh but sharding the nodes could be very dangerous because if you can't access the old transactions, it could be very harmful for the network. Uh and uh there's a let's say uh this one modularity is sharding, or you can say sharding is the modularity. What I mean by that is uh like Cosmos or other networks defends the modularity, but uh we already have that. The sharding is can be the modularity here.
Uh on the modular networks, uh they have different types of parts like execution settlement and exec etc. Uh for the workflow, but the sharding means the same thing actually. In sharding, you can have different parts. Actually, you can have the execution or settlement in different parts too. Uh but right now the layer twos, most of the layer twos using sharding use this type of things. Uh, what is the problem with sharding? Uh the problem is mostly security issues because uh the verifying of the data should be a thing, and every shard can be a blockchain itself.
What I mean by here, uh, like ANOMA or other things, it you can be a settlement network or other thing uh besides to be a complete network. Dank sharding and Ethereum. Uh Dank sharding is actually uh planned before the merge happens. Merge is the uh updates for the proof of stake uh improvement. Dank sharding is the sharding method for Ethereum, but we first uh try to use prototy sharding called actually called blobs. Uh let's look at them.
Blobs are the binary large objects. Uh the complete structure uh is only data, but we are uh actually compressing them, we are using load of chunks of data, and after the roll-ups need uh final site, yeah, I need I mean uh it's done, the confirmations is done, settlement is done. We can delete the blobs, that's why we are right now using them. Uh yeah, uh we are using prototype sharding right now, and we may use the denk sharding, uh, but we need some improvement before the dank sharding. One of them is PBS, PBS called proposable separation.
Uh, it needs some architecture change on the blocks, and the DA sampling. DA sampling is actually uh the main part of sharding, we can call it like that. Uh we need to verify the availability of the data with a proof. Uh actually, in Veladium, uh we use the proofs of proofs like the recursion proofs uh to do so. Uh ZK sharding and nil. Uh why nil? Nil uh used ZK sharding instead of sharding because of the uh less size using less size. And uh what is the difference between nil and zk rollups?
The thing is nil uh says that they are not fragmented uh in the liquid manner, uh but it's not uh very actual thing. And uh Nil uh says that they have economic security better than ZK roll ups, but uh in their website they are called uh their security with ristaking for liveness and safety. Uh but restaking is can be a loop and it can be dangerous. Uh plasmas.
Plasma is actually optimized for high speed and low cost, uh, besides the rollups and other scaling solutions. Uh in Plasma, we have off-chain execution and block validation uh have a difference. Uh actually Mina used off-chain execution, that's why I wrote it there. Uh and plasmas are using fraud proofs like optimistic rollups for uh they are using assuming uh on transaction verification, and uh they say that fraud proofs are verified from the Ethereum, so they use the security from Ethereum, but it can be a discussionable uh thing to do. And uh between the Ethereum and plasma chains, we have a problem that if you send Ethereum or other tokens between the plasma and Ethereum chains, uh you do not have a guarantee to finalize the transaction.
And the mass exit and data availability problems are uh bigger in plasma chains, that's why we are not preferring them. Uh state channels are the off-chain payment channels. These are actually uh blockchains of the independent users, let's say. Uh you want to send something to your friend, you should use side channels because it's more likely to be easier to use. But the problem with state channels is you need to have a multi-sector approval. I mean, your friend or other participants doesn't approve this, approve the transactions. You could have done that.
We've done all the work in the channels, but we are not sending the transfer verifications to the network. We are sending it after the finalization, just set updates. And in state channels, we have microtransactions, they are like low value payments because the channels are already opened and you can do uh gasless transactions. Uh what I mean by multi-up transfers is uh you have a connection with a friend, and our your friend has a different different connection with another one. You can hop uh on your friend's channel to the other person. Uh yeah, and this is how uh state channels work.
Uh they work uh you are working between your friends, and you are just settling the transactions uh verification to the blockchains. Uh volumes, volumes are uh likely the K ROPs uh besides plasma because plasma use fraud proofs, but volumes use validity proofs. Uh volumes uh are uh roll ups but using different data availability, like uh you can say monta is uh example for that. And volumes have recursion, you can use proofs of proofs to make the size uh decrease.
Uh and we have volution here. Uh actually, that's a type of validum, but uh it's a choice by the deployment. You can uh create and ZK rollup and validium chain in the same network for uh making the choice give to users and rollups. Uh rollups are I say that rollups are just smart contracts. They are not very technical, but they are simply to use, but uh just smart contracts. Uh in the prototype sharding and the blobs, we are using batch and corporation to make rollups scale. Uh and yeah, blobs are the prototype sharding.
I said that. Uh optimistic rollups. Optimistic rollups use fraud proofs, and they are just assuming that the transactions are valid. Uh they are using off-chain computation and state storage, uh, just verifying the on-chain to layer one, just using it as a settlement layer. Uh, they are using uh they are posting all the transactions data to layer one, which is not quite good. Uh ZK rollups actually just sending the verify verified data to the uh layer one. Uh optimistic rollups have a uh I mean unnecessary things for the time need. You should need too much time to exit from the optimistic rollups, and optimistic rollups have a long roadmap for finalizing the architecture because uh they are right now trying to integrate with uh other rollup types, other proof types, yeah.
And ZK rollups are more technical than the optimistic rollups because they are uh just sending the summary of transactions to the layer one as a settlement. Uh they are just uh using the proofs, yeah. And the execute exit of the roll-ups, ZK rollups is easier than the optimistic roll-ups, but they have also a longer roadmap than optimistic roll-ups for finalizing the architecture. These are actually a quite new thing.
Just one base roll-ups, uh roll-up is live right now. They are using layer one as a sequencing layer. They are uh securing their layer one from uh their uh transactions from the layer one uh for making it more let's say decentralized. Uh but these have some downsides, like uh sequencing from layer one can be uh can happen to be a front-run uh uh attack, and besides this, taiko like the taiko and base rollups do not have a Maving Comp because they are sequencing in the layer one sidechains. Sidechains are the separate chains uh beside layer one, but uh they can connect to layer one uh with bridges or other things.
Uh sidechains have a EVM compatible problem. Uh the Krollups have this too, they have the KEVMs, EVMs, and side chains have the same issue too. And the app chains uh are in sidechains, the app chains could be a chain, likely cause most the app chain thing. And yeah, why sidechains are better in my opinion? Uh because we are we can be more flexible on the architecture in sidechains, we can change our consensus besides layer one. Uh the layer one have a limited block times and block size.
Uh, we can change that in our uh sidechain or uh uh improvement onto the core protocol. Uh and uh we can make the architecture more scalable than roll-ups right now. Uh yeah, problems or sidechains. Uh sidechains don't have security. Sidechains need to borrow or create some security by themselves. Uh plasmas, the difference between plasmas and sidechains are just security because plasma can use the fraud posts to take the security from Ethereum. And uh in sidechains, the integrating to layer one can be hard because you need to have a different bridge for every side chains and again and again.
Uh if you want to use a separate consensus mechanism for efficiency, uh, you may need some adaptation problems, adaptation problems. Uh, and you have high trust assumptions to sidechains because RD nodes are uh independent. Uh yeah, these are things that we built at the Lambda class second. Uh I want to represent it here too. Uh we have a new approach to side chains. Uh we use the eigen layer as an uh AVS to our sidechains to make them borrow security from Ethereum. Uh actually you may call it uh uh hacking the Ethereum security and integrating it to here.
Uh but when you have sidechains, you have uh, as I said, another problems. One of them is fragmented liquids. So you need to aggregate the liquids for uh varying the attacks. Uh in this product, we use elastic chain because of uh we created the sidechains with the case stack, so that's more easy to use. Uh and you may uh verify them through the aligned layer, which is an uh AVS in the aligned layer uh eigen layer too. Uh and we have a uh new node approach. I will talk about it.
Yeah, I'll talk about it here. Uh there is a uh thing called merged mining in the proof of work chains, like the name coin or Dogecoin. Uh it uh appears like 10 years ago or something. Uh it is the thing that you can uh uh mine two different networks or two different chains in a same node. So in this product, we are trying to we try to use it uh with the proof of stake chains, like we are using sidechains, but uh we need to have a uh we need to solve the DA problem besides sidechains. So we are using these node approach to saving everything in the same node in the sidechains and the layer one.
Uh yeah, this is our uh basic workflow of our project. When the TPS gets too higher, uh I mean over the limit, we create some side chains, and when it when it decreases, we uh shut down them. Yeah, uh, this is it. We are taking the side chains from the ZK stack, we are creating them and connecting them to Elastic Chain for aggregation. I mean the look aggregation. Uh and in theoretical, you can uh connect the layer one to here, but layer one is not uh using ZK proofs right now, so we cannot connect that. And uh borrowing the secret from eigenlayer and Etharium is a thing to make sidechains more scalable and usable.
Uh and lastly, we settled to Mina. We settled just the transaction is uh actually uh in a last thing, we can use aligned layer here, but aligned layer doesn't support Kimch proofs right now. Kimch proof is a proof that Mina uses, so we couldn't use that. We just settled to Minu uh Mina. We didn't verify the proofs at there. Yeah, this is the other uh thing that I talked about. Yeah, that's it. Thank you for listening.
Related talks
- Speedrun Rollups: A Beginner's Guide to L2s, ZK, and WTF People Are Talking About
- State of Layer 2 - Sandeep Nailwal
- 'Exploring the Layer 2 Spectrum' - Sandeep Nailwal
- Ethereum at Hyperscale
- Vitalik Keynote | ETHTaipei 2025
- How to Scale a Blockchain Motivating the Ethereum Rollup Centric Roadmap
- Exploring L2/L3 Orbit Chains - Why & How
- What You Really Want to Know about the Current State of L2s on Ethereum
- Ethereum turns 7, Layer 2 chat and much more - The Daily Gwei Refuel #418 - Ethereum Updates