위키 구독하기

Share wiki

Optimistic rollup

Wiki Powered byIconIQ
Optimistic rollup

Optimistic rollup

Optimistic rollup is a scaling protocol designed to enhance ’s throughput and latency by processing transactions outside of the network. It involves moving computation and data storage off-chain to reduce the load on the and increase its scalability. [1][2]

   
Optimistic aggregates transactions into a single transaction, known as rollup blocks, to significantly enhance the throughput of the main . Its ability to process transactions off-chain and use a 'fraud-proof' mechanism to detect invalid transactions allows it to alleviate congestion on the main blockchain while offering seamless interoperability and efficient transaction processing. [3][4]

Overview

Optimistic , a type of Layer 2 (L2) scaling solution, relies on off-chain computation to record transactions that occur within L2. It updates the state of the rollup on the main by publishing a Merkle root of the transactions that transpire within the rollup. Optimistic rollup is governed by three primary components: a , which interacts with both the L2 chain and ; a sequencer, responsible for collecting, ordering, and executing transactions on the L2 chain; and a set of , comprising a group of nodes that monitor the L2 chain and submit 'fraud proofs' to the smart contract if any invalid transactions are detected. Validators are accountable for checking the correctness of the Merkle roots before the system's state is updated. In cases of inconsistencies, a validator publishes a fraud-proof, which then reverts the state to its previously valid state. [5]

How Optimistic Rollup Works

The key feature of optimistic is that it only verifies transactions if fraud-proof is submitted because it assumes all transactions are valid by default. In addition, it enables high scalability while maintaining security and decentralization. Optimistic rollup begins functioning when users sign transactions and submit them to the sequencer. The sequencer, in turn, verifies and adds these transactions to a queue. Subsequently, the sequencer batches thousands of queued transactions into a block, which contains Merkle roots of the L2 chain and the transactions and submits to the network as a single transaction. Within the , the roots are stored, and the system's state is updated accordingly. [5]

workflow of optimistic rollup.png Workflow of an optimistic rollup [6]

The full block data is published off-chain by the sequencer, either on a decentralized storage network like or on a centralized server. Data verification is performed by validators to determine whether it matches the roots submitted on-chain when the data is accessed. If any discrepancies are discovered, validators can submit fraud proof to the smart contract. Subsequently, the contract will revert the invalid block and revoke the sequencer's bond. [5]

A user's fund withdrawal from the L2 chain to must be initiated as an exit request on the L2 chain. The sequencer is involved in submitting the request in the form of a block to Ethereum and then the unlocks the funds and transfers them to the user's address, although there is a waiting period involved. In the case of an optimistic , the waiting period is approximately one week before a withdrawal can be finalized. In contrast, allow for immediate withdrawals. However, during this waiting period, anyone can challenge the exit with a fraud-proof claim if they believe it to be invalid. Additionally, the one-week waiting period can be bypassed when users utilize a . An LP can pay a user on L1 in exchange for a fee when it assumes ownership of a pending L2 withdrawal. [2][5]

Elements

Optimistic rollup is a class of protocols sharing common features and design choices. The three major elements of this rollup are fraud-proof mechanisms, execution models, and data availability solutions. [5]

Fraud-Proof Mechanism

The fraud-proof mechanism in an optimistic comes in two types: interactive and non-interactive. An interactive fraud-proof mechanism requires a sequencer and validators to verify the validity of a block, while a non-interactive fraud-proof mechanism utilizes cryptographic proofs to verify a block's validity without requiring direct interaction. The primary distinction between these two mechanisms lies in their characteristics: the former is more flexible and general but comes with higher costs and longer processing times, whereas the latter is more efficient and rapid but tends to be more restrictive and specialized. Notable examples of optimistic rollups employing interactive fraud-proof mechanisms include and . On the other hand, zkSync 2.0 and Boba Network employ the non-interactive fraud-proof mechanisms of the optimistic rollup. [5]

Execution Model

The classification of the execution model in optimistic also comprises two types: Virtual Machine (EVM)-compatible and EVM-equivalent rollups. The former employs the EVM as its base layer (Layer 1), enabling the rollups to execute any smart contract without requiring modifications. Conversely, the latter adopts a functionally equivalent virtual machine, allowing the rollups to accommodate most with minor adjustments. Examples of EVM-compatible optimistic rollups include and, while EVM-equivalent rollups include zkSync 2.0 and Boba Network. [5]

Data Availability Solution

This category of optimistic elements also comprises two types: decentralized data availability solutions and centralized data availability solutions. In a decentralized data availability solution, peer-to-peer networks or decentralized storage networks like are employed to store and distribute full-block data. In contrast, centralized data availability solutions rely on a single server or a trusted third party to store and provide full-block data. The significant distinction between these two data solutions lies in their security and censorship resistance. Decentralized solutions are more secure and resistant to censorship, albeit being more expensive and complex. On the other hand, centralized solutions are vulnerable and depend on trust, but they are more cost-effective and simpler. and exemplify rollups that utilize decentralized data solutions, while zkSync 2.0 and Boba Network opt for centralized data availability solutions. [5]

Benefits

Optimistic offers numerous benefits, including higher throughput, lower gas fees, faster confirmation times, enhanced security and decentralization, as well as compatibility with existing smart contracts and tools. [5]

Higher Throughput

Optimistic enhances transaction throughput by achieving greater transaction speeds and shorter confirmation times. This is accomplished by circumventing congestion and limitations at Layer 1 (L1), enabling transactions to be processed more swiftly and frequently on the L2 chain. [5]

Lower Gas Fees

In an optimistic rollup, a significant portion of computation and data storage is shifted off-chain, leading to reduced gas fees for transactions. Additionally, this approach economizes on gas costs and enhances efficiency by aggregating thousands of transactions into a single block, with minimal data submitted on-chain. [5]

Faster ConfirmationTimes

Confirmations on the L2 chain occur instantly, enhancing transaction latency within the rollup. [5]

Security and Decentralization

Security and decentralization in an optimistic rollup are derived from L1 by publishing transaction results on-chain and relying on fraud proofs to ensure correctness. [5]

Compatibility

Optimistic is compatible with existing smart contracts and tools, thereby benefiting both developers and users. For instance, developers can utilize familiar libraries, frameworks, and standards such as , EVM, and Solidity. Similarly, users can employ the same wallets, interfaces, and browsers, like . [5]

Examples

The leading optimistic rollup blockchains based on Total Value Locked (TVL) include , , Metis Andromeda, and Boba Network. [7]

Arbitrum

is an optimistic rollup project specifically designed to enhance 's user costs and transaction speed by transferring computation and data storage off-chain. It operates as a solution, improving the capabilities of Ethereum by increasing their speed and scalability while integrating additional privacy features. In addition, Arbitrum has higher throughput and lower fees as compared to Ethereum. [7][8][9]

The Arbitrum Virtual Machine (AVM) enables the use of EVM-compatible smart contracts, allowing users to access their preferred dApps at a fraction of the cost compared to Ethereum. Arbitrum has its own native token, known as , primarily utilized for governance purposes. ARB holders have the authority to participate in voting on proposals that impact features, protocol enhancements, fund allocation, and the selection of a Security Council. [7][9]

Optimism

is a blockchain that leverages the security of the Ethereum to enhance the scalability of the ecosystem through . This approach ensures that transactions are recorded on Optimism in a trustless manner and are ultimately secured on the Ethereum network.[10]

Optimism focuses on simplicity in constructing its Ethereum Layer 2 solution, which involves utilizing established Ethereum code and infrastructure whenever feasible. Its goal is to maintain simplicity in its code by working directly with existing codebases. [10][12][13]

Metis Andromeda

Metis Andromeda was developed to meet the demand for permissionless and open collaboration, offering Ethereum users an EVM equivalent, lightning-fast, and user-friendly solution. Originally forked from , Metis provides support for multiple interconnected chains, with a main focus on supporting the easy creation of DACs (decentralized autonomous companies). It offers three essential products alongside its Layer 2 scaling technology: [11]

  • An bridge and storage solution
  • A framework for DACs
  • Polis, a middleware platform

Metis' NFT bridge facilitates the seamless transfer of NFTs between the Ethereum blockchain and Metis' Andromeda network. This allows users to create NFTs on Metis, potentially reducing minting fees, and then moving them to Ethereum. Conversely, users can mint NFTs on Ethereum and transfer them to Metis. The Metis crypto protocol also provides NFT storage by integrating with the InterPlanetary File System (), a decentralized file storage system. [13]

Boba Network

Boba Network is a multichain Layer 2 scaling solution designed to harness the power of technology and enhance blockchain communication flexibility. It utilizes Optimistic Rollup technology to decrease fees, enhance transaction speed, and broaden the functionalities of smart contracts. The Boba network is fully compatible with EVM-based tools and has extended multichain support for, , , and , enabling rapid transactions and low fees.[14][15]

See something wrong?

편집자

Profile picture of Anonymous uservzbrv

편집 날짜

October 12, 2023

참고 문헌.

[1]

101 Blockchains

Aug 14, 2023

[2]

Ethereum website

Aug 14, 2023

[3]

Coin 360

Aug 14, 2023

[4]

Third web blog

Aug 14, 2023

[5]

Coin Market Cap

Aug 14, 2023

[6]

Alchemy

Oct 11, 2023

[7]

Alchemy

Oct 12, 2023

[8]

CoinMarketCap Academy

Oct 12, 2023

[9]

CoinMarketCap

Oct 12, 2023

[10]

CoinMarketCap - Optimism

Oct 12, 2023

[11]

MetisDAO Medium handle

Oct 12, 2023

[12]

L2 beat

Oct 12, 2023

[13]

Gemini

Oct 12, 2023

[14]

CoinMarketCap - Boba Network

Oct 12, 2023

[15]

Golden

Oct 12, 2023