Dencun Upgrade: A New Chapter for Ethereum’s Layer 2 Scalability
Tags: ethereum, rollups
Published: 2024-04-12 11:23:39

<p>As a front-runner in the Web 3 ecosystem, Ethereum boasts a robust ecosystem housing thousands of Dapps, with a TVL at the time of writing standing at $50 B. Ethereum has been able to achieve these landmark milestones, allegiance to rollups and side chains. However, at the heart of the protocol, Ethereum is able to provide scalability in the hierarchy—or, to put it simply, on L2s as its scaling layer.&nbsp;</p>
<p>However, considering the spike in network activity, the need of the hour is to provide infinite scalability at the base layer for L2s to enjoy near-horizontal scalability.&nbsp; In this regard, the Dencun Upgrade introduces the concept of scalability on top of scalability through data availability using single-slot finality (SSFs), Verkle Trees, KZGs, and Erasure Coding. It is the first step forward to grant limitless scalability to the Ethereum ecosystem.&nbsp;</p>
<p>This article will discuss what’s new in the Ethereum Dencun upgrade or EIP 4844 and what it means for Layer2s.&nbsp;</p>
<figure class="wp-block-image aligncenter size-large"><a href="https://app.zeeve.io/auth/signup?serviceURL=https://app.zeeve.io/ethereum/nodes/full/purchase"><img src="https://www.zeeve.io/wp-content/uploads/2024/04/Deploy-an-Ethereum-Node-with-just-a-few-clicks-1024x213.png" alt="Ethereum Dencun Upgrade" class="wp-image-64281"/></a></figure>
<h2 class="wp-block-heading" id="h-what-is-the-ethereum-dencun-upgrade-for-layer2s">What is the Ethereum Dencun Upgrade for Layer2s?</h2>
<p>Ethereum Dencun Upgrade<strong> </strong>is a major hard fork event after the Shapella that would grant limitless scaling to the base L1 chain by following a series of upgrades that would redefine the consensus and execution on the Ethereum layer using proto-dank sharding. More on that in the latter part of the piece.&nbsp;</p>
<p><strong>But what is Proto-dank sharding, by the way?</strong></p>
<p>Proto-dank sharding is an introductory temporary storage for the L2 chains that would allow them to store data temporarily on the Ethereum main chain until they are processed as a single transaction to be bolted on the Ethereum blocks.&nbsp; For that purpose, Proto-dank sharding or EIP-4844 introduces the concept of data blobs where the rollups will trigger a state change using the data blobs, and it would replace the call-data to blob-data; thereby significantly freeing up space on the <a href="https://www.zeeve.io/blockchain-protocols/deploy-ethereum-blockchain/">Ethereum chain</a> for even lighter and economical transactions in layer2s through Ethereum Dencun Upgrade. Proto-dank sharding will collectively use EIP-7045, EIP-7044, and EIP-7514, EIP-5656, EIP 4788&nbsp; &amp; EIP-6780 to achieve that for dapps banking on Ethereum for their final settlement.&nbsp;</p>
<h2 class="wp-block-heading" id="h-why-was-the-dencun-upgrade-necessitated-nbsp">Why was the Dencun Upgrade necessitated?&nbsp;</h2>
<p>To understand why we need the <strong>Ethereum</strong> <strong>Dencun Upgrade for Layer 2s</strong>, we need to go back to the basics of how transaction finality works on Ethereum for L2s and L3 chains.&nbsp;</p>
<p>On the rollup chains, the transactions are bundled and posted for settlement on the main L1 chain for the change of the state of the rollup. As a result, the main L1 chain/aka Ethereum, works as the consensus/ settlement layer for the modular rollup chains, inheriting Ethereum’s security and liveliness in the hierarchy.&nbsp;</p>
<p>With such an approach, the competition for the block space on the Ethereum main chain turns brutal because every Dapp( on L2s and L3s) on the rollup chain wants to get their bundled rollup transaction included on Ethereum first. Since Ethereum records all the data on its main chain as call data, it can significantly impact the cost for settlements because every rollup environment wants to get their transaction processed first, and Ethereum has a specific block size for each block to include transactions.&nbsp;</p>
<p>This new <strong>Ethereum Dencun Upgrade for Layer2s</strong> introduces EIP-4844/ Proto-Dank sharding to lend horizontal scaling to all the rollups on the base chain. Ideally, all the rollups need settlement data to remain only until the contest/challenge period, and thereafter, they need not require that to give more room for other rollup data to use the same Ethereum blockspace for finality. Proto-dank sharding solves this problem by lending collaborative scaling to all the Dapps deployed on L2s.&nbsp;</p>
<h2 class="wp-block-heading" id="h-how-will-dencun-upgrade-work-nbsp">How will Dencun Upgrade work?&nbsp;</h2>
<p>Proto-danksharding introduces a new concept of blob-data instead of call data to help scale the Ethereum base layer. In this approach, the rollup chain will push data as blob-data and, EIP-1153 will perform data management by removing intermediate data transmission from blob blocks to Ethereum blocks, and <strong>EIP-6780 </strong>will restrict data destruction until specific conditions are met for finality.&nbsp;&nbsp;</p>
<p>Thereafter, <strong>EIP-5656 </strong>&nbsp;acts as a bridge between blob data and EVM to trigger a state change to affect the rollup environment collectively. For that purpose, other complementary technologies like KZG and Erasure Coding will have a key role to play in bundling up all the data coming from rollups on blob/shards to provide the leisure of scalability over scalability to L2s. &nbsp; In this way, it can help scale the base layer in the  following manner:&nbsp;</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k4ovgdca6j1stw8r53ml.png)
<p>As you can see, the rollup chains post their transactions on the blobs through an EIP-1153 commitment that instantly clears the data from the block once the transaction has been settled.&nbsp;</p>
<p>The <strong>EIP-5656</strong> will allow the EVM to trigger a memory management scheme triggered through <strong>EIP-7516,</strong> which will trigger the&nbsp; <strong>BLOBBASE FEE</strong> opcode on Ethereum to trigger the current base fee on the Network. This will prevent the L2 dapps from paying very high fees because, for transaction validation, the smart contracts from the Dapps will use <strong>Blob- Data</strong> rather than the traditional call-data that Ethereum contracts use to communicate with the rollup environment.&nbsp;</p>
<p>In this way, the rollup contracts can economically communicate with the Blobs and store transactions because, unlike a call-data transaction that communicates with Ethereum, the blob-data transaction performs computation off-chain. Thereafter, they submit a common proof on Ethereum blocks as Blobs. Ethereum validates for a state change for all the subsequent rollup data bundled together. The blob blocks self-destruct data upon execution to make way for the next transaction to be included for settlement and execution.</p>
<p>&nbsp;This process is triggered through BLOBSTORE and BLOBLOAD, new EVM Op-Codes introduced under the Ethereum Dencun Upgrade for Layer 2s. These codes allow the Ethereum Legacy L1 blocks to continuously rendezvous with the blobs that will inherit the validation from the DAS layer triggered through KZG and Erasure Coding for decentralization and security.&nbsp;</p>
<h2 class="wp-block-heading" id="h-how-will-the-ethereum-dencun-upgrade-impact-the-l2s">How Will the Ethereum Dencun Upgrade Impact the L2s?</h2>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qywywidhvyq3dvte191w.png)
<p>If you see the price effect of the Ethereum Dencun upgrade on popular L2 rollup chains, it’s 10 times cheaper. The above data is for Optimism, Arbitrum, and zkSync public chains before and after Dencun.</p>
<p>We can see that the fees have become negligible for OP rollups, while for ZK Rollups, they have become less, but not as low as the OP rollups. This is true for all other ZK chains as well, like Polygon or Starknet.&nbsp;</p>
<p>Ethereum Dencun's upgrade for layer2s has significantly reduced the cost of data availability on Ethereum, and now what will matter is how cheap transaction executions can be.&nbsp;</p>
<p>This will have a ripple effect on layer3s as well. Basically, the reason projects were looking forward to deploying on top of L3s was to enjoy infinite scalability for their app-specific needs at a lower cost, which L2s somehow missed to fulfill.&nbsp;</p>
<p>In addition, thousands of apps deployed as L3s to match their project-specific needs, and posting the data on the Ethereum chain meant a very high computational load on Ethereum. The Dencun Upgrade has cut the cost on L2s by 10x. This means that projects can skip having an L3 strategy all the time and instead enjoy the same degree of freedom on L2 chains without affecting liquidity at the same cost.</p>
<p>But does that mean we don’t need L3s anymore? Definitely not. L3s are for specific kinds of applications with high transaction frequency. Hence, they would still want more fee reductions while settling for L2s to achieve lightning-fast transactions at even lower costs. A new on-chain internet demands new scaling models, and L3s will utilize the power of L2s in new ways.&nbsp;</p>
<p>However, the trend of launching our own custom L2/L3 chains will only go up from here, as the cost is likely to be less than that of standalone L2s for most use cases.&nbsp;</p>
<h2 class="wp-block-heading" id="h-build-your-l2-l3-rollups-with-zeeve-nbsp">Build Your L2/L3 Rollups With Zeeve&nbsp;</h2>
<p>Zeeve provides Rollups-as-a-Service (RaaS) to help deploy your own custom OP and ZK rollup chains with all sorts of 3rd party integrations and middleware. Businesses can choose OP Stack, Arbitrum Orbit, zkSync ZK Stack, and Polygon CDK to build their L2 or L3 chains. Zeeve RaaS also offers a Sandbox tool to launch instant DevNet for optimistic and ZK rollups, and businesses can try different configurations before moving to mainnet.&nbsp;</p>
<p>Alt DA layers (Celestia, Avail, Eigen Layer, NEAR DA), decentralized/shared sequencers (like Radius, Espresso, NodeKit), account abstraction SDK providers (like Biconomy, Halliday), decentralized oracles (like RedStone, Pyth, Dia, ChainLink), and many more are available as easily pluggable component. Check out our <a href="https://www.zeeve.io/integrations/">integration partner page</a> for a detailed list.&nbsp;</p>
<p>If you have any questions, <a href="https://www.zeeve.io/talk-to-an-expert/">contact us</a>. Our expert teams can help you determine what infrastructure would better suit your needs.&nbsp;</p>