Cointime

Download App
iOS & Android

Optimistic vs. Zero-Knowledge Rollups: What’s the Difference?

TL;DR

The increasing popularity of crypto and blockchain has led to developers seeking a way to scale by improving a system’s ability to accommodate the growing demand. Sharding, sidechains, state channels, and rollups are some approaches to scaling. Blockchain rollups offload certain transaction processes to a secondary chain while storing transaction data on the main Layer 1 blockchain. In this article, we explore the two types of rollups in the crypto space – optimistic and zero-knowledge.

Introduction

Due to rising crypto demand, some blockchains’ abilities are tested to their limits. This could lead to network congestion and expensive transaction costs. To address this, scaling solutions are being developed and tested to increase transaction throughput and speed. Such solutions can be categorized into two groups: Layer 1 and Layer 2.

Layer 1 scaling solutions like sharding make changes directly to the main blockchain (also known as a base or Layer 1 blockchain). Layer 2 scaling solutions run on top of a Layer 1 blockchain. Examples of Layer 2 scaling solutions include state channels, sidechains, and blockchain rollups.

Blockchain rollups are protocols designed to enable high throughput and lower costs. They aim to fix the problem many popular blockchains face by bundling transactions and reducing data size for more efficient transaction processing and storage.

What Are Blockchain Rollups?

Rollups are a Layer 2 solution that bundles up transaction data and transfers it off the main chain (or Layer 1 blockchain). Transaction execution is then performed off-chain, while assets are held in an on-chain smart contract. The transaction data will be sent back to the main blockchain upon completion.

Theoretically, any Layer 1 solution can implement rollups to increase transaction efficiency in terms of throughput. With rollups, a blockchain can increase the number of transactions processed and recorded within a certain timeframe.

Presently, there are two types of rollups – optimistic rollups and zero-knowledge (zk) rollups.

What Is an Optimistic Rollup?

Optimistic rollups are protocols that increase transaction output by bundling multiple transactions into batches, which are processed off-chain. After that, the transaction data is recorded on the main chain with data compression techniques that help lower cost and increase speed. According to Ethereum, optimistic rollups can improve scalability by 10 to 100 times.

How do optimistic rollups validate transactions?

Transactions are valid by default to increase efficiency. You may wonder if this would compromise security in favor of transaction processing speeds. However, optimistic rollups use a fraud-proving scheme, with a dispute-resolution period known as a ‘challenge period.’ Within this period, anyone monitoring the rollup can submit a challenge to verify if the transaction has been processed accurately through a fraud proof.

If that batch is found to have errors, the rollup protocol will rectify them by re-executing the wrong transaction(s) and updating the block. Parties who approve incorrect transactions for execution will be penalized.

Limitations of optimistic rollups

While there isn’t a transaction validation process, there is a challenge period that zk rollups do not have, which increases the time taken for transactions to be finalized.

The finality of chains with optimistic rollups is also lower than that of zk rollups. Finality is the measure of how long a user has to wait for a reasonable guarantee that the transactions will not be reversed or altered. Withdrawals on optimistic rollups are delayed as the challenge period needs to lapse before funds can be released. In contrast, withdrawals from zk rollup take effect as soon as the zk rollup smart contract verifies the validity proof.

Some people also view optimistic rollups as less efficient than zk rollups. With optimistic rollups, all transaction data must be posted on-chain to finalize transactions. With the zk counterparts, only validity proofs are required on-chain.

What Is a Zero-Knowledge (zk) Rollup?

Zero-knowledge rollups are protocols that bundle transactions into batches to be executed off the main chain. For every batch, a zk rollup operator will submit a summary of the required changes once the transactions in the batch have been executed. Operators have an additional role in producing validity proofs to prove that the changes are accurate. These proofs are significantly smaller than transaction data; therefore verifying them is quicker and cheaper.

On Ethereum, zk rollups reduce transaction data via compression techniques when writing transactions to Ethereum as calldata, effectively reducing user fees.

How do zk rollups validate transactions?

Zk rollups use zero-knowledge proofs (ZKP) to validate transactions. ZKPs are used by someone called a prover who wants to convince another party, known as a verifier, that they possess knowledge, thereby verifying a transaction.

This is how it works:

  1. The prover provides a mathematical proof that only they can generate.
  2. The verifier uses this mathematical proof to verify the validity of the transaction.
  3. The information can receive validity proof without revealing the contents to the verifier.

Benefits of zk rollups

Zk rollups can offer a high level of security for users if implemented properly. One key feature contributing to this security is the use of zero-knowledge validity proofs. They ensure that the network can only function in a valid state and that operators cannot steal user funds or corrupt the system in any way.

Another benefit of zk rollups is that users don't need to monitor the network. Zk rollups store all data on-chain and require validity proofs. Therefore an operator can't cheat, and users don't have to worry about network misbehavior. Additionally, zk rollups let users withdraw their funds onto the mainnet without having to cooperate with operators by proving token ownership via data availability.

Similar to optimistic rollups, zk rollups also implement an off-chain execution mechanism to increase transaction execution speeds.

Differences Between zk Rollups and Optimistic Rollups

Below is a summary of the differences between optimistic and zk rollups.

What’s the Future of Zero-knowledge & Optimistic Rollups?

The future of zero-knowledge and optimistic rollups is still a question mark. As more people adopt crypto and blockchain, rollups may play a vital role in improving blockchain efficiency. Blockchains will likely continue to test various scaling solutions, including sharding, rollups, and layer 0. We could also see new solutions being created and implemented, either along with or instead of rollups.

Closing Thoughts

Since the demand for crypto has increased and stretched the limits of current blockchains, many have proposed different scaling solutions. In this article, we examined the inherent differences between two varieties of rollups, optimistic and zk rollups. As rollups continue being battle-tested, we may eventually see a superior variety that could help us reach scalability for mass adoption.

Disclaimer and Risk Warning: This content is presented to you on an “as is” basis for general information and educational purposes only, without representation or warranty of any kind. It should not be construed as financial advice, nor is it intended to recommend the purchase of any specific product or service. Digital asset prices can be volatile. The value of your investment may go down or up and you may not get back the amount invested. You are solely responsible for your investment decisions and Binance Academy is not liable for any losses you may incur. Not financial advice.

Read more: https://academy.binance.com/en/articles/optimistic-vs-zero-knowledge-rollups-what-s-the-difference

Get the latest news here: Cointime channel — https://t.me/cointime_en

Comments

All Comments

Recommended for you

  • Web3 AI training company FLock raises $6 million in seed funding

    Web3 artificial intelligence training company FLock has raised $6 million in seed funding led by Lightspeed Faction and Tagus Capital. FLock will use these funds to develop its team and build a federated learning-driven artificial intelligence training platform.

  • Prisma: Vault owners need to prohibit delegation of contracts related to LST and LRT

    The LSD stablecoin protocol Prisma Finance stated in a post that for vault owners, please prohibit delegating authorization of the LST contract starting with 0xcC72 and the LRT contract starting with 0xC3eA.

  • MAS: Singapore is working on global first-tier fund tokenization regulation

    Chia Der Jiun, Managing Director of the Monetary Authority of Singapore, introduced some fund tokenization pilots at an event for asset managers. These pilots are part of the Project Guardian and MAS Global Layer 1 (GL1) tokenization plans. Chia Der Jiun emphasized the advantages of tokenization in real-time settlement and process automation, which can improve efficiency and achieve greater customization of funds. UK asset management company Schroders and fund distribution platform Calastone are exploring this as part of the Project Guardian public blockchain trial in Singapore. A recent survey by Calastone showed that 96% of asset management companies in the Asia-Pacific region plan to launch tokenized products within three years. Chia stated that as these Project Guardian pilot projects approach commercialization, MAS is working with the pilot project managers to study the legal and regulatory treatment and impact of tokenized investment funds."

  • Indonesia's Financial Services Authority to Regulate Crypto Industry in 2025 with Evaluation in Regulatory Sandbox

    Indonesia's Financial Services Authority (OJK) will take over regulation of the crypto industry from the commodities agency Bappebti. Crypto firms must undergo evaluation in a regulatory sandbox before being licensed to operate in the country. The OJK aims to prioritize consumer protection and education, and firms operating without evaluation in the sandbox will be considered illegal. The sandbox provides a safe and isolated environment for testing and innovation development, helping to enhance security and responsible management in the financial sector. Once under OJK's oversight, crypto assets will likely be reclassified as financial instruments.

  • The Shenzhen Illegal Fund Raising Prevention Office issued a risk warning on the "DDO digital options" business

    The Shenzhen Office for Preventing and Dealing with Illegal Fundraising issued a risk warning regarding the "DDO digital option" business. The activities related to the DDO digital option business conducted in the name of Dingyifeng International are essentially the issuance and trading of virtual currencies. According to the "Notice on Further Preventing and Dealing with Risks of Speculation in Virtual Currency Trading" jointly issued by ten departments including the People's Bank of China in September 2021, it is clear that virtual currency-related business activities are illegal financial activities, and overseas virtual currency exchanges providing services to residents within China are also illegal financial activities. The activities conducted by Dingyifeng International in the name of serving residents within China are suspected of illegal fundraising and other illegal financial activities. Our office has organized relevant departments to carry out work, resolutely deal with illegal fundraising and criminal activities, and seriously investigate the legal responsibilities of relevant personnel. (Shenzhen Local Financial Supervision and Administration Bureau)

  • The Hong Kong Legislative Council plans to review the relevant stable currency consultation and sandbox legislation at the end of this year or next year

    Hong Kong legislator Wu Jiezhuang revealed that Hong Kong will release stablecoin consultation and sandbox (computer security mechanism), which will allow the industry to innovate digital asset projects in the sandbox environment. Relevant legislation will be reviewed in the Legislative Council at the end of this year or next year, which will help the entire digital asset industry ecosystem. Hong Kong has been improving the digital asset (virtual asset) market on different legal levels. Last year, there were regulations on virtual currency trading platforms and issuance systems.

  • Vitalik: Humanity needs to create a world where blockchain and artificial intelligence work together

    Vitalik Buterin, the founder of Ethereum, stated at BiddleAsia 2024 held at Signiel Seoul in the Songpa district on March 28 that artificial intelligence is a huge market and its importance is increasing day by day. We need to create a world where blockchain and artificial intelligence work together. Artificial intelligence can now create applications with 100 to 500 lines of code. Vitalik also stated that the ability to write 10,000 lines of code can eliminate most of the bugs in the Ethereum virtual machine.

  • South Korean RWA blockchain technology development company PARAMETA completed a new round of financing of approximately US$7.5 million

    South Korean RWA blockchain technology development company PARAMETA announced the completion of a new round of financing of KRW 9 billion (approximately $7.5 million), with Shinhan Hyperconnect Investment Fund under Shinhan Venture Investment and Korea Asset Investment & Securities participating. As of now, the company's total financing has reached KRW 25 billion (approximately $20.8 million). PARAMETA plans to use this investment to expand its own blockchain technology research and development capabilities to meet RWA technology needs and expand from core technologies such as engines/chains to service applications. Relevant services are expected to be launched within the year.

  • Incheon, South Korea launches blockchain hub city

    South Korea announced on the 28th that it will establish a blockchain technology innovation support center in the Songdo Michu Building in the second half of this year. Incheon was finally selected as a participant in the "2024 Regional Blockchain Technology Innovation Support Center Construction Project" jointly organized by the Korean Ministry of Science, ICT and Future Planning and the Korea Internet & Security Agency (KISA). Incheon is the third region to be selected after Busan and Daegu. In February last year, Incheon established a dedicated blockchain department and formulated a four-year plan to create a blockchain center city, which was promised by Incheon Mayor Liu Zhengfu. After being selected, Incheon will receive KRW 1.8 billion in government funding.

  • BTC breaks through $70,000

    The market shows that BTC has broken through $70,000 and is now reporting at $70,003.6. The intraday decline has reached 0.58%, and the market fluctuation is large. Please be prepared for risk control.