暗号資産 基本

ゼロ知識ロールアップとオプティミスティック・ロールアップ:概要

The scalability of blockchains has historically been a significant challenge when designing and building decentralized applications (dApps) to support growing user bases. For instance, how can networks increase transaction throughput without reducing decentralization? What is an appropriate balance between scalability and security? These questions have sparked the exploration of innovative solutions within the Ethereum network, such as layer 2 (L2) protocols, which operate on top of the Ethereum mainnet. 

A popular type of L2 protocol is a rollup, which bundles together or “rolls up” and processes transaction data off-chain before uploading them to Ethereum to reduce the network’s computational burden. Among these, zero-knowledge rollups and optimistic rollups have gained prominence. By comparing the goals and architectures of both rollups, we can better understand their potential to shape the future of blockchain scalability and security. 

このブログでは、以下のトピックについて取り上げます: 

Zero-knowledge rollups

What are zero-knowledge rollups?

Zero-knowledge rollups, or zk-rollups, are L2 scaling solutions for blockchain networks that employ zero-knowledge proofs (zk-proofs/ZKPs) to process transactions more efficiently. Instead of storing transaction data directly on the Ethereum mainnet, zk-rollups bundle this data off-chain and generate a cryptographic proof of validity, which is then posted to the mainnet for verification. This proof of validity ensures that no invalid transactions are processed by the rollup, thus diminishing computational demands on the mainnet. 

How do zero-knowledge rollups work?

When executing a transaction in a zk-rollup, the following steps typically occur: 

  1. A user decides to sign a transaction and submit it to the zk-rollup for processing. 
  2. This transaction is included in the rollup’s next batch of transactions and aggregated off-chain. 
  3. A zero-knowledge proof that verifies all of the transactions on the rollup is posted to the Ethereum mainnet, along with the bundled transactions, in the form of calldata. 
  4. The proof is permanently stored and searchable in Ethereum’s history.

Benefits of zero-knowledge rollups

A primary benefit of zero-knowledge rollups is improving Ethereum’s scalability and efficiency. Given that zk-rollups bundle transactions off-chain instead of on-chain, they help increase transaction throughput and decrease congestion, allowing more users to participate in the ecosystem. In some cases, reduced congestion may lead to lower gas fees. 

Challenges and limitations of zero-knowledge rollups

Zk-rollups require complex cryptography, which can be expensive and difficult to implement. Deployment and regular maintenance of zk-rollups also require developers to have specialized blockchain expertise. 

Optimistic rollups

What are optimistic rollups?

Optimistic rollups are L2 scaling solutions for blockchain networks that bundle and execute transactions off-chain, in a manner similar to zk-rollups. These rollups are considered “optimistic” because, unlike zk-rollups, they do not provide direct proofs of transaction validity, but rather assume all transactions are valid unless proven otherwise. 

If users notice that a bundle includes invalid transactions, they can submit a fraud proof, stating that the transactions are corrupt. Users have a specific time window to prove that the results of a transaction are indeed incorrect and, if successful, the rollup must reverse the transaction and re-execute without the invalid transactions. The Layer 1 blockchain typically levies a penalty to dissuade rollups from bundling such invalid transactions.

How do optimistic rollups work?

When executing a transaction on an optimistic rollup, the following steps typically occur: 

  1. A user decides to sign a transaction and submit it to the optimistic rollup’s operating system for processing. 
  2. This transaction is included in the rollup’s next batch of transactions and aggregated off-chain. 
  3. Transactions are posted on the Ethereum mainnet in the form of calldata. 
  4. If a user proves that a transaction is incorrect, the rollup reverses the transaction. The user who originally submitted the transaction may then re-submit. 
  5. If valid, the data are permanently stored in Ethereum’s history.

Benefits of optimistic rollups

Similar to zk-rollups, optimistic rollups aim to improve Ethereum’s scalability by increasing transaction throughput and reducing congestion. Optimistic rollups can be more efficient than zk-rollups, as no validity proofs are required, and fraud proofs are only needed in the case of fraud. 

Challenges and limitations of optimistic rollups

Users of optimistic rollups may face long withdrawal periods for their funds due to the fraud-proving scheme which requires users to wait a certain amount of time to ensure that others do not submit fraud proofs. 

Zero-knowledge rollup vs. optimistic rollup activity

To compare the scale of activity of zk-rollups and optimistic rollups, we looked at the total value locked (TVL) on bridge contracts between Ethereum and L2s for both rollup types. In the below chart, we see that this activity was consistently higher for optimistic rollups than zk-rollups between January 2022 and July 2024. During this time period, the TVL bridged between optimistic rollups and Ethereum was approximately $186.4 billion, whereas it was only $20.8 billion for zk-rollups. Note that the stark difference in TVL is likely due to the fact that it is currently faster and easier to develop optimistic rollups, and they are more compatible with Ethereum. 

We further broke down this activity to examine specific protocols in each rollup category. For zk-rollups, zkSync Lite and Loopring bridged the most TVL between 2022 and early 2023. After that, zkSync Era, Linea, Starknet, and Scroll experienced uptrends in bridged TVL. 

For optimistic rollups, the pattern has been more consistent. Arbitrum and Optimism accounted for the highest amounts of bridged TVL during the time period studied, with several months of high activity on BASE. 

Chainalysis’ rollup coverage

Chainalysis has industry-leading coverage of EVMs and rollups, including complete and dynamic token support with the ability to easily onboard new tokens deployed to a network. For transactions executed in both zero-knowledge rollups and optimistic rollups, we have the ability to trace transactions as we can do on Ethereum. 

本ウェブサイトには、Chainalysis, Inc. およびその関連会社(以下、総称して「Chainalysis」)の管理下にない第三者のサイトへのリンクが含まれています。当該情報へのアクセスは、Chainalysis が当該サイトまたはその運営者との提携、支持、承認、または推奨を行っていることを意味するものではなく、Chainalysis は、当該サイトで提供される製品、サービス、その他のコンテンツについて一切の責任を負いません。 

本資料は情報提供のみを目的としており、法律、税務、財務、または投資に関する助言を提供するものではありません。受領者は、こうした決定を行う前に、各自のアドバイザーに相談してください。Chainalysis は、受領者が本資料を利用したことに起因する、つながり におけるいかなる決定、その他の作為または不作為についても、一切の責任を負いません。

Chainalysis 当社は、本報告書に記載された情報の正確性、完全性、適時性、適合性、または有効性を保証するものではなく、当該資料のいかなる部分における誤り、欠落、またはその他の不正確さに起因するいかなる請求についても責任を負いません。