laitimes

Avail is Expanding the Capabilities of the OP Stack to Reduce DA Costs for L2 by 90%

As Avail rapidly approaches mainnet, this series of articles will explore the potential integrations between Avail and leading scaling solutions and show how developers can integrate with Avail to take advantage of its secure, decentralized, and low-cost data availability blockchain.

Too long to read the edition

  • Avail is expanding the capabilities of the OP Stack.
  • Using Avail, developers of the OP Stack can reduce their data availability costs by about 90%.
  • L2, built on the OP Stack, leverages Avail for secure, low-cost, and decentralized data availability.
  • Avail is moving towards mainnet and recently announced a rewarding testnet.

Check out the first article in the series, "zkEVM Validiums Can Reduce Ethereum's Gas Fees by 90%!"

OP Stack 结合 Avail

OP Stack has become a popular choice for communities and companies to build their own L2 Rollups. It is used by the OP mainnet and is maintained by the Optimism Collective. It's also a tech stack that developers have started to expand and modify. One such modification is the use of a purpose-built data availability layer like Avail. In this article, we'll discuss how you can use OP Stack in conjunction with Avail as your data availability provider to significantly reduce your Ethereum transaction fees.

How does OP Stack manage data availability?

The DA layer supported by OP Stack by default is Ethereum. L2 transactions are submitted to the sequencer, which is responsible for sorting transactions and creating L2 blocks. The transaction batch is sent by the sequencer to Ethereum, which then submits the transaction data as calldata.

Avail is Expanding the Capabilities of the OP Stack to Reduce DA Costs for L2 by 90%

The advantage of using Ethereum as a data availability layer (DA layer) is that developers using the OP Stack can inherit Ethereum's security guarantees. Anyone can access L2 transaction data published on Ethereum and use it to derive the correct chain state of L2.

However, this benefit comes at a significant cost. Ethereum was not designed as a data availability solution and is not optimized for this use case. While efforts are being made to improve this, at the time of writing, up to 90% of L2 fees paid to Ethereum are used to manage data availability. High-volume use cases that process large volumes of transactional data can be significantly reduced by using purpose-built data availability solutions like Avail.

How does Avail work with OP Stack?

The Avail team built the Avail OP Stack, a modified version of the OP Stack that sends transaction data to Avail instead of Ethereum, reducing transaction fees by up to 90%.

Transactions are submitted to sequencer nodes in the Avail OP Stack. The op-batcher then submits the transaction batch to a module called the op-avail, which is added to submit the data to the avail.

The transaction data is then added to the Avail blockchain, and a transaction reference is returned to op-avail, which is passed to the op-batcher and submitted to Ethereum as calldata. Transactions published on Ethereum refer to nonce containing the Avail block hash, sender address, and external transactions.

Avail is Expanding the Capabilities of the OP Stack to Reduce DA Costs for L2 by 90%

Chains built with the Avail OP Stack inherit the security guarantees of Avail's nominated proof-of-stake blockchain network. Avail's blockchain is built using the Polkadot SDK to reduce the risk of validator centralization and is working to support 1000 external validators. Data published on Avail's blocks is validated by the Avail network, but not executed. L2 can use the OP Stack with Avail and pay only a fraction of the fees of the current implementation, which publishes transaction data to Ethereum.

To get a more detailed look at how the Avail OP Stack works for sequencers and validator nodes, you can see a more detailed diagram in the Avail OP Stack repository. https://github.com/availproject/avail-op-stack-adapter?ref=blog.availproject.org

Future improvements

Optimism's proof-of-fault system, which is used to verify the correctness of transactions on Ethereum, is still under development at the time of writing. The OP Stack sequencer is still centralized for now, but plans are to decentralize it. As these improvements are rolled out by the Optimism Collective, the Avail OP Stack will be updated to include these changes.

Several improvements to the Avail OP Stack have been identified and will be implemented soon. Avail's data roots will be published to Ethereum via the Vector Proof of Data Bridge. The data root is the root of the Merkle tree, and its leaves are the data blocks submitted to Avail. This will enable sequencers and other L2 nodes to verify that Avail's validators on Ethereum have reached consensus on the availability of the data.

Avail is Expanding the Capabilities of the OP Stack to Reduce DA Costs for L2 by 90%

Once OP Stack has implemented a valid proof of failure, a DA inclusion proof can be sent along with Avail's batch hash and used in OP Stack's proof-of-failure interactive dispute game. https://github.com/ethereum-optimism/optimism/blob/develop/specs/fault-proof.md

The Optimism Collective also announced plans for an interoperable network of L2 chains built using the OP Stack, called Superchains (https://app.optimism.io/superchain). All of these future improvements are still in development and will be implemented into the Avail OP stack where possible.

Get started with the Avail OP Stack today!

Check out the Getting Started guide in the Avail OP Stack repository (https://github.com/availproject/avail-op-stack-adapter) to get started today! If you have any questions or suggestions on how to improve this build, you can reach out to the team on the Avail forums or Discord. https://discord.gg/8VeequhgJT

The OP Stack is one of many blockchains that can take advantage of Avail's secure universal data availability layer. To learn more about integrating Avail with other leading L2 and blockchain ecosystems, check out the Avail Ecosystem series and subscribe to our newsletter. http://eepurl.com/it4xbs