Data Availability Layer in Rollups: what is it and why do we need one?
Tags: rollups
Published: 2024-01-16 06:54:34

<p>Initially, Layer-2 rollups used to publish their block data on <a href="https://www.zeeve.io/blockchain-protocols/deploy-ethereum-blockchain/">Ethereum</a>, making it accessible for nodes on-chain. This makes Ethreum very congested, which increases transaction cost significantly. As a solution, independent data availability layers have now been introduced, and they are becoming much more popular across L2/L3 <a href="https://www.zeeve.io/rollups/">rollups</a> and modular blockchains.&nbsp;</p>
<p>For this article, let’s focus on the data availability layer in <a href="https://www.zeeve.io/rollups/">rollups</a>. We will talk about what the data availability layer exactly means, how it solves the scalability trilemma, and why DA layers are so important.&nbsp;</p>
<h2 id="h-let-s-first-understand-data-availability">Let’s first understand data availability.</h2>
<p>To better understand the concept of the data availability layer, let’s briefly understand data availability first. DA is the guarantee that all the block producers duly publish their block’s transaction data, allowing all the network participants to download and access these data blocks. These blocks are of the following two main types:</p>
<li><strong>Block header </strong>that contains blockchain’s metadata, such as previous block hash, block number, timestamp, nonce, etc.</li>
<li><strong>Block body</strong> that contains all the list of transactions, containing sender &amp; receiver’s address, amount of tokens being transferred, and digital signatures of involved parties.</li>
<p>Whenever a new block is to be added, the proposer of the block needs to publish both the header and body data, making the information available for the rest of the nodes to verify. This whole process is referred to as data availability.</p>
<h2 id="h-now-what-is-the-data-availability-layer-in-rollups">Now, what is the Data availability layer in rollups?</h2>
<p>The data availability layer is a vital component of <a href="https://www.zeeve.io/rollups/">rollups</a>, especially modular ones. DA layer ensures that all kinds of data, such as transaction details, smart contracts data, and other off-chain data, are available to all the nodes on L1, L2, and L3 networks. With a separate DA layer, rollups can have complete control of their mechanism, which allows for better accessibility, transparency, and immutability of data. This DA layer will store all the data and provide consensus for data availability.&nbsp;</p>
<p>Knowing the benefits of moving the DA layer out of the main network (Layer-1) are currently known to all the modular rollup networks, such as <a href="https://www.zeeve.io/appchains/polygon-zkrollups/">Polygon CDK</a>, <a href="https://www.zeeve.io/appchains/arbitrum-orbit-rollups/">Arbitrum Orbit</a>, <a href="https://www.zeeve.io/appchains/optimistic-rollups/">OP Stack</a>, and <a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">zkStack</a>, in which every operation such as consensus, settlement, and DA can happen on separate layers. This approach which takes off significant data load from the underlying Layer-1, allowing it to increase throughput capacity, speed, and response time.&nbsp;</p>

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4p0s0p5raold3k1wa2ku.png)
<p>We can think of a data availability layer like the recording of a live football game. Imagine a popular football team playing on the field, but not everyone gets the chance to watch it live. Hence, the entire game is recorded and broadcast to people. Here, the data availability layer can be the network that records and broadcasts the football match. This ensures anyone can watch the <a href="https://www.zeeve.io/blog/how-to-choose-the-right-blockchain-for-your-game/">game</a> and confirm the fair play. Similarly, with the DA layer, any node can replay the blockchain’s history and verify the entire data.&nbsp;&nbsp;</p>
<h2>How does the Data Availability Layer work for rollups?</h2>
<p><a href="https://www.zeeve.io/rollups/">Blockchain rollups</a>; <a href="https://www.zeeve.io/appchains/optimistic-rollups/">Optimistic</a> and <a href="https://www.zeeve.io/appchains/polygon-zkrollups/">ZK rollups</a> have gained huge traction across web3 projects. However, rollups traditionally store their data in main networks like <a href="https://www.zeeve.io/blockchain-protocols/deploy-ethereum-blockchain/">Ethereum</a>, which increases congestion in their ecosystem. Now, with DA Layer, rollups can maintain a separate blockchain for more streamlined data availability to all the nodes and increased security.&nbsp;</p>
<p>Reliable DA layer providers like Celestia, <a href="https://www.zeeve.io/blockchain-protocols/deploy-near-node/">NEAR</a>, and Avail offer advanced, pluggable data availability layers that developers can use to buid efficient and user-friendly applications. With 100% data availability, the DA layer can support rollups’ integrity and functionality, which ultimately contributes to the goal of improving blockchain scalability.</p>
<p>Hence, we can say that the data availability layer in <a href="https://www.zeeve.io/rollups/">rollups</a> separates data availability from Layer-1 (for example, Ethereum), which reduces the congestion for enabling higher scalability, better security, and low-cost transactions on the main network. Implementation of the DA layer allows <a href="https://www.zeeve.io/rollups/">rollups</a> to broadcast transactional data on their own network that would otherwise published on <a href="https://www.zeeve.io/blockchain-protocols/deploy-ethereum-blockchain/">Ethereum</a>. The goal here is to free up significant space from Ethereum and allow it to scale L2s more efficiently.&nbsp;</p>
<h2 id="h-what-makes-the-data-availability-layer-so-important">What makes the Data Availability Layer so important?</h2>
<p>Most of the Layer-2 and Layer-3 rollups are built on top of Ethereum and on the equivalent layer-1 ecosystem. The consensus logic of <a href="https://www.zeeve.io/blockchain-protocols/deploy-ethereum-blockchain/">Ethereum</a> dictates that all the transaction data must be available to all the nodes and be independently verifiable. To enable this, rollups earlier were used to publish transaction data as CALLDATA on Ethereum so that nodes can retrieve data easily whenever needed. However, this approach was extremely expensive and resource-intensive. By decoupling the data availability layer from <a href="https://www.zeeve.io/blockchain-protocols/deploy-ethereum-blockchain/">Ethereum</a>, <a href="https://www.zeeve.io/rollups/">rollups</a> can achieve the following unique benefits:</p>
<h3 id="h-enhanced-security-of-blockchain-networks">Enhanced security of blockchain networks:</h3>
<p>One of the important advantages of the Data Availability Layer is its potential to ensure the reliable security of <a href="https://www.zeeve.io/rollups/">rollup networks</a>. By making all the data available and accessible to nodes, the chance of malicious and fraudulent activities becomes almost nil. Further, a DA layer can improve rollup’s performance by allowing faster transaction validation and minimization of network congestion.&nbsp;</p>
<h3 id="h-distribured-control-scalability">Distribured control &amp; scalability:&nbsp;</h3>
<p>Having separate DA layers means that a <a href="https://www.zeeve.io/rollups/">rollup network</a> can experiment with DA and other layers, which makes the ecosystem highly modular &amp; flexible. Also, data availability layers in rollups are optimized to introduce next-gen features; for example, Celestia’s DA supports Data Availability Sampling (DAS) and Namespaced Merkle Trees (NMTs) features that are proven to accelerate a network’s scalability while keeping the battle-tested security intact.</p>
<h3 id="h-significant-reduction-in-cost">Significant reduction in cost:</h3>
<p>As we know, the overgrowing popularity of Ethereum has led to network congestion, which has driven up its transaction fees. Therefore, storing data on a main network like <a href="https://www.zeeve.io/blockchain-protocols/deploy-ethereum-blockchain/">Ethereum</a> is relatively expensive for rollups. Instead, storing calldata on a separate DA layer can reduce the cost significantly. For example, rollups can use NEAR’s DA to store transaction data at approximately 8000x cheaper cost than publishing the same amount of data on Ethereum.</p>
<h3 id="h-easy-settlement-and-validation-proofs">Easy settlement and validation proofs:</h3>
<p>The data availability layer ensures that data remains available 24*7 on all the layers of a <a href="https://www.zeeve.io/rollups/">rollup chain</a>– whether it's execution, settlement, or consensus layer. This allows for easy resolution of disputes, fraud, and other issues across all the layers. Also, the DA layer can implement an off-chain light client, allowing nodes to confirm data availability without having to download entire blocks.</p>
<h3 id="h-simple-to-interact-with">Simple to interact with:</h3>
<p>Although managed parallel to other layers (like the Sequencer and execution layer), data availability layers are simple to interact with. That’s because DA layers are integrated with readily available <a href="https://www.zeeve.io/blog/tips-for-handling-rpc-request-errors/">RPCs</a> that can seamlessly retrieve on-chain data from the whole ecosystem and serve it without any issues.</p>
<h2 id="h-exploring-different-pluggable-da-layer-solutions">Exploring different pluggable DA layer solutions&nbsp;</h2>
<p>Pluggable DA layer solutions are being increasingly adopted across many blockchains and <a href="https://www.zeeve.io/rollups/">rollups</a>. Below are some of the leading DA solutions that are pluggable and modular, designed for high-throughout blockchains:</p>
<h3>Celestia</h3>
<p>Celestia is a modular <a href="https://www.zeeve.io/blockchain-protocols/">blockchain network</a> that offers a pluggable, out-of-the-box data availability layer solution that allows web3 developers to plug and play the DA layer into their existing network ecosystem. Data availability sampling (DAS) and Namespaced Merkle trees (NMTs) are the two novel mechanisms that Celestia’s DA layer adopts. DAS enables light nodes for verification of data availability without the need for downloading entire blocks. Whereas NMTs enable settlement and execution layer on Celestia, allwong nodes to download only the transactions which seem relevant to them. With all these unique features, Celestia's DA layer claims to reduce transaction fees by more than 100x for end users. Prominent <a href="https://www.zeeve.io/rollups/">rollup</a> ecosystems like <a href="https://www.zeeve.io/appchains/polygon-zkrollups/">Polygon CDK</a>, <a href="https://www.zeeve.io/appchains/arbitrum-orbit-rollups/">Arbitrum Orbit</a>, <a href="https://www.zeeve.io/appchains/optimistic-rollups/">OP Stack</a>, and Starkware are now natively supported in Celestia.&nbsp;</p>
<h3>NEAR&nbsp;</h3>
<p>NEAR Data availability or NEAR DA layer is another efficient and robust pluggable DA layer solution that simplifies DA layer implementation in your rollup network while lowering the transaction cost considerably. NEAR DA utilizes an off-chain light client that allows nodes to validate that rollup-related data was published on-chain. Further, <a href="https://www.zeeve.io/blockchain-protocols/deploy-near-node/">NEAR</a> uses a Proto-dank sharding approach to increase the throughput capacity of rollups dramatically.</p>
<p>By plugging NEAR DA, <a href="https://www.zeeve.io/rollups/">rollup networks</a> get cost-effective and reliable data availability. For example, 100kB of calldata on NEAR will cost $0.0033 (As of 2023), and the same calldata will cost $26.22. Ethereum L1 — 8,000 times cheaper!&nbsp;</p>
<h3>Avail</h3>
<p>Avail is the next big player in the list of pluggable DA layer solutions. Avail’s advanced DA layer is designed to simplify the spinning up of next-generation <a href="https://www.zeeve.io/blog/a-comprehensive-guide-for-smart-contract-and-sovereign-rollups">sovereign rollups</a>. Avail’s DA layer solution can sample from its light client across peer-to-peer networks rather than relying on <a href="https://www.zeeve.io/blog/what-is-a-full-node-a-detailed-guide/">full nodes</a>. Also, Avail includes innovative mechanisms like data availability sampling (DAS) and next-gen validity proof called KZG commitment. These features ensure DA reduces memory consumption, bandwidth, and storage, thereby making Avail an ideal DA solution for both <a href="https://www.zeeve.io/appchains/optimistic-rollups/">Optimistic</a> and <a href="https://www.zeeve.io/appchains/polygon-zkrollups/">Zkrollup</a> projects.&nbsp;</p>
<h2 id="h-how-do-da-layer-solutions-work-with-zeeve">How do DA layer solutions work with Zeeve?</h2>
<p><a href="https://www.zeeve.io/">Zeeve</a> has included all the leading DA layer solutions– Celestia, NEAR DA, and Avail into its modular <a href="https://www.zeeve.io/rollups/">rollups-as–a-service (RaaS)</a> stack, enabling web3 projects to easily spin up their modular and high-performance <a href="https://www.zeeve.io/rollups/">rollup chains</a> in a few clicks with their choice of DA layer.&nbsp; Be it <a href="https://www.zeeve.io/appchains/optimistic-rollups/">OP Stack</a>, <a href="https://www.zeeve.io/appchains/arbitrum-orbit-rollups/">Aritrum Orbit</a>, <a href="https://www.zeeve.io/appchains/polygon-zkrollups/">Polygon CDK</a>, or <a href="https://www.zeeve.io/appchains/zksync-hyperchains-zkrollups/">zkStack</a>; you can add these as your alt DA layer and make your rollups more scalable and cost-efficient.&nbsp;</p>
<p><a href="https://www.zeeve.io/rollups/">Zeeve’s RaaS stack</a> is optimized to cut down call data costs to approximately 100 times for all kinds of rollups– <a href="https://www.zeeve.io/appchains/optimistic-rollups/">Optimistic</a> of <a href="https://www.zeeve.io/appchains/polygon-zkrollups/">Zkrollups</a>. Similar to the DA layer, you can choose Biconomy and Halliday for <a href="https://www.zeeve.io/blog/erc-4337-how-account-abstraction-is-a-game-changer-for-web3-industry/">Account Abstraction (AA)</a>, Chainlink for decentralized oracles, Espresso and Radius for Decentralized Sequencer, Subgraph for data indexers, and LayerZero and Router Protocol for interoperability layer.&nbsp; On top of this, <a href="https://www.zeeve.io/">Zeeve</a> offers a real-time monitoring dashboard that monitors and manages your <a href="https://www.zeeve.io/rollups/">rollup networks</a> on cricitial parameters, ensuring its performance and reliable security.</p>
<p>For more information on how <a href="https://www.zeeve.io/">Zeeve</a> simplifies the development of modular <a href="https://www.zeeve.io/rollups/">rollups</a> or to discuss your project-specific requirements, connect with us experts. You can drop your queries via email on this page, or we also have the option to <a href="https://www.zeeve.io/talk-to-an-expert/">schedule a one-to-one call</a>.&nbsp;</p>