The Ethereum's scalability solution has created a dichotomy within its fellow community members. With members proposing different scaling solution like Rollsups, Sidechains, Plasma, Channels. Each ones comes with its merits and demerits and I plan to unravel it in this post.
Understanding Ethereum
Before we get into scaling lets us first understand the various layer of the Eth block chain. Eth fundamentally has 4 layers. For now I will only be talking about the first two layers.
- Layer 1
- Layer 2
Scaling Solutions
So basically there are 2 ways to scale the ethereum block chain one way uses layer 1 and the other uses layer 2.
- Layer 1 scaling solution is to simply improve the throughput of the network by allowing more transaction capacity.
- Layer 2 scaling solution it to reduce the load on the main chain by moving most of the interaction off-chain.
Layer 1 scaling
One of the proposed way to improve the transactional throughput of the network is by increasing the the number of sophisticated nodes on network, but soon the eth team realized that this solution would lead to centralization as normal users of the network wont be able to afford a super computer to run these sophisticated nodes. To fix this the concept of sharding was introduced.
Sharding
Sharding is the process of distributing the computing and storage workload into smaller parts called shards. This way each nodes no longer have to process the entire networks transactional load.
The concept of sharding works only when Ethereum moves from the proof of work consensus to proof of stake consensus. This in short is what the team has planned for layer 1 scaling of ethereum and is popularly know as Ethereum 2.0
Layer 2 scaling
Layer 2 scaling is all about moving most of the interaction off-chain instead of doing it on the main chain. The main chain will have smart contracts deployed on it with its role to just perform basic function like deposits/withdrawal and running proofs.
There are many layer2 solutions but we just need to know most widely discussed ones.
- Plasma
- Rollups
Plasma
Plasma is framework wherein the idea is to create multiple child chains of the parent chain(ethereum). Smart contracts deployed on the parent chain allows the child chains to operate under the parent chain and have interaction with it whenever needed. The plasma uses the concept of merkle trees in its functionality and in this way major chuck of the transaction is offloaded onto the child chains thus allowing cheap and fast transaction. In my previous post I have explained the concept of merkle tree very briefly please do check it out here
One of the demerits of plasma is the long waiting period for withdrawal of funds out of the network.
Rollups
Rollups function in the similar way to plasma but are slightly different. Rollups bundle up transactions into a batch and send them off to side chains to compute while maintaining the State root value on the main chain. If there are changes in the merkle tree then the state root is updated back on the main chain. This is made possible with the concept of merkle trees. The batches create scalability because they are not using Ethereum for any computation but just as a data storage system. Rollups also solve the game theory issue of data availability problem that exist in the plasma.
There are two types of rollups
- Optimistic Rollups
- Zk rollups
Optimistic Rollups
Optimistic Rollups is a mechanism in which when the state root that is submitted on main chain is by default assumed to be true unless challenged by someone. In an event of a fraud the challenger who challenged the batch is rewarded and the sequencer that submitted that batch will be punished by taking over his/hers staked Eth. This punishment is called slashing. For now the community has decided to go ahead with optimistic rollups as a layer two scaling solution.
Zk rollups
Zk rollup on the other hand are fast compared to optimistic rollups. Zk rollups submit the batch the state root and a cryptographic proof that the state root is correct. Proofs can be verified on chain for a reasonable cost. Therefore there is no need of fraud proofs like optimistic rollups. Zk rollups are technically complex and does not allow an easy way for existing smart contracts to migrate whereas optimistic rolls do.
Conclusion
For now Ethereum has a long way to go in terms of scalability. With just the implementation of layer 1 scaling, the transaction per second is said to improve to 4k tps, with both layer 1 and layer 2 the tps is said to improve to 100k tps. All of the proposed scaling mechanism have some tradeoffs which will eventually evolve with time.
I have tried to keep this short and less technical, if you want a more detailed information on the above please check out vitalik's blog here
If you made it till here and found it helpful please do consider checking out my other posts
MERKLE : The unsung hero of decentralization
The expectation of constructing realistic expectations
Our Pursuit Of Unhealthy Happiness
TL;DR
- Ethereums network will be scaled at two layers. Layer 1 and layer2
- Layer 1 scaling includes change from proof work to proof of stake and by sharding.
- In Layer 2 the scaling will be done through optimistic rollups.
- Scaling up with sharding and rollups at layer 1 and layer 2 respectively will improve ethereum's transaction per second from 14 to 100k transaction per second
Posted Using LeoFinance Beta
Thanks for the overview. I would be interested in seeing more details about this process including what the potential pitfalls are. You mentioned them briefly.
I think many are taking it for granted that scaling might happen and everything will be fine. I would be interested in an analysis of how this could get sidetracked and not work out as planned.
People need to be aware of how things can fail too when making investment decisions.
Posted Using LeoFinance Beta
Definitely, I have a more detailed post in the pipeline. Prior to posting this, I had worked on an even more detailed post only to realize in the end that it got too much technical and difficult to understand.
Also as you have mentioned I agree how things could go wrong. Vitalik himself admits how bad it could end up for the entire crypto space. With the merge right around the corner the best we can do is keep our fingers crossed and hope transition to eth 2 is smooth.
Posted Using LeoFinance Beta
Congratulations @memesdaily! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s) :
<table><tr><td><img src="https://images.hive.blog/60x70/http://hivebuzz.me/@memesdaily/upvoted.png?202106071813" /><td>You received more than 4500 upvotes.<br />Your next target is to reach 4750 upvotes. <p dir="auto"><sub><em>You can view your badges on <a href="https://hivebuzz.me/@memesdaily" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">your board and compare yourself to others in the <a href="https://hivebuzz.me/ranking" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Ranking<br /> <sub><em>If you no longer want to receive notifications, reply to this comment with the word <code>STOP <p dir="auto"><strong><span>Check out the last post from <a href="/@hivebuzz">@hivebuzz: <table><tr><td><a href="/hivebuzz/@hivebuzz/pud-202106-feedback"><img src="https://images.hive.blog/64x128/https://i.imgur.com/zHjYI1k.jpg" /><td><a href="/hivebuzz/@hivebuzz/pud-202106-feedback">Feedback from the June 1st Hive Power Up Day <h6>Support the HiveBuzz project. <a href="https://hivesigner.com/sign/update_proposal_votes?proposal_ids=%5B%22109%22%5D&approve=true" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Vote for <a href="https://peakd.com/me/proposals/147" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">our proposal!