1. Abstract Rollup is a scalability solution for Ethereum Layer 2, aiming to enhance the transaction throughput of Ethereum by processing transactions off-chain. Optimistic Rollup, as the name1. Abstract Rollup is a scalability solution for Ethereum Layer 2, aiming to enhance the transaction throughput of Ethereum by processing transactions off-chain. Optimistic Rollup, as the name
新手学院/Market Insights/Hot Topic Analysis/Optimistic ...al Analysis

Optimistic Rollup: A Technical Analysis

Jul 16, 2025MEXC
0m
4
4$0.01047-1.93%
7
7$----%
Solayer
LAYER$0.05977-0.71%


1. Abstract


Rollup is a scalability solution for Ethereum Layer 2, aiming to enhance the transaction throughput of Ethereum by processing transactions off-chain. Optimistic Rollup, as the name suggests, employs an optimistic mechanism. Optimistic Rollup assumes that all transactions on Layer 2 are valid and compresses multiple transactions into a single submission to Ethereum. After the submission, there is a one-week period during which any user on the chain can challenge the authenticity of transactions. If fraud is detected during the state update, the challenger can receive a reward. Undoubtedly, Optimistic Rollup is the most practical and innovative solution for Ethereum Layer 2, and its technical details deserve further exploration. This article will provide a brief analysis of the implementation details of Optimistic Rollup and delve into its technical principles.

2. How Optimistic Rollup Works


On Optimistic Rollup Layer 2, user transactions are sent to the operators of Optimistic Rollup nodes. These nodes act as "validators" and "aggregators," responsible for aggregating and validating transactions. They compress multiple transactions' data into a single transaction, which, after compression, enters the transaction pool of Ethereum Layer 1, just like any other transaction. Finally, the nodes will receive and process the transactions and publish blocks on the Ethereum blockchain. Anyone can become an Optimistic Rollup node, but similar to the Proof-of-Stake (PoS) mechanism, nodes are required to provide a security deposit to the Ethereum network as a guarantee of their integrity.

During block submission, the nodes do not verify the legitimacy of state transitions. However, they provide a one-week "fraud proof" challenge period for the block. If no node or user challenges the legitimacy of the block during this period, the block will be confirmed. If a successful "fraud proof" challenge is made, the node that published the block will lose its security deposit. To incentivize the detection of fraudulent behavior, the security deposit is rewarded to the user who successfully proves the fraud. Through this approach, Optimistic Rollup utilizes the incentive measures of cryptographic economics to ensure the honesty and reliability of nodes.

3. How Data Compression is Achieved


A regular Ethereum transaction, such as sending ETH, typically consumes around 110 bytes. However, sending ETH on Optimistic Rollup only consumes approximately 12 bytes. To achieve this, Optimistic Rollup employs simpler advanced encoding techniques.

In Optimistic Rollup Layer 2 transactions, the nonce is completely omitted and instead recovered from the pre-state. Gas-related information like Gasprice and Gas is moved out of Layer 2 transactions. The To and From fields no longer require Ethereum addresses; instead, a subtree is added to the state to store the mapping of indices to addresses. Value can be stored using scientific notation, requiring only 3 digits for transfers. As for signatures, transactions within a batch can be aggregated using BLS aggregate signatures, reducing the storage consumption for each individual transaction signature. This aggregated signature can batch-check the entire set of messages and senders. Additionally, these transaction data are stored in the Calldata field on-chain, which has a relatively low gas cost.

The uploaded data includes not only the aforementioned transaction data and content, but also the Merkle tree root before and after batch transactions (including state data such as account, balance, and contract code, thus known as the state root). It also includes data used to prove (or verify) the legitimacy of state transitions. These compression techniques are crucial for achieving scalability using Optimistic Rollup. Currently, after compression, Optimistic Rollup can provide throughput that is over 30 times higher than Ethereum.

4. Submitting Data to Ethereum


Optimistic Rollup deploys a specific smart contract called the Rollup contract on Ethereum Layer 1. This contract is responsible for managing the state of the Rollup, including tracking user balances, handling deposits, withdrawals, and dispute resolution. In Optimistic Rollup, transactions are collected and aggregated by nodes off-chain, bundling multiple transactions into a "Rollup block." This block contains transaction content and the Merkle tree root of the new account state.

Later on, nodes publish the aggregated data as calldata on Ethereum. Calldata is an unmodifiable and non-persistent area within smart contracts, similar to internal storage. As part of the history log of blockchain, calldata is not stored as part of Ethereum's state. As calldata doesn't involve any portion of Ethereum's state, it is more cost-effective to store data on-chain using calldata.

5. State Commitment


As mentioned before, the uploaded data includes not only the transaction content but also the Merkle tree root before and after the transaction. The Merkle tree root represents the Optimistic Rollup state at any given point in time, including accounts, balances, contract codes, etc. It is also known as the "state tree" and serves as the organizational form of the Optimistic Rollup state. The leaf nodes of the Merkle tree represent the account states, and the root node represents the final value. Changes in the Layer 2 transactions of Optimistic Rollup result in updates to the account states, which in turn affect the information of the leaf nodes, ultimately leading to changes in the root hash value. The Layer 2 operator maintains the state tree of Layer 2 accounts locally, recording the root hash values before and after the batch transactions occur, and uploads this root hash value when uploading the batch transactions.

This Merkle tree root (state root) references the latest state of the Rollup, undergoes hashing, and is stored in the Rollup contract. Each on-chain state transition generates a new Rollup state, and nodes submit this state by computing the new state root.

When nodes publish a block, they need to submit both the old state root and the new state root. If the old state root matches the existing state root in the on-chain contract, the latter is discarded and replaced with the new state root. Nodes also need to submit the Merkle tree root for the batch of transactions itself. This allows anyone to prove that the transactions are included in the block by providing a Merkle tree proof. The Merkle tree root is crucial for proving the state changes in Optimistic Rollup.

6. Fraud Proof


Optimistic Rollup allows anyone to provide transaction information and state transition information, and publish blocks without providing validity proofs. To ensure the security of the Ethereum blockchain, Optimistic Rollup has established a one-week window during which users can raise doubts about the blocks (including state transitions and other information).

If someone raises a doubt, the Optimistic Rollup protocol initiates fraud proof computation. By replaying the transactions that resulted in state transitions on the chain, a new state root is computed. This computed state root is then compared with the state root proposed by the sequencer. If other nodes or users discover a discrepancy between the final block state and the state proposed by the node, the fraud proof challenge is successful, and the state transition is canceled. At the same time, the challenging node is penalized, and their bond is confiscated and awarded to the challenger.

Re-executing transactions on Ethereum to detect fraud requires publishing state commitments for individual transactions and adding data that must be published on-chain. Replaying transactions also incurs significant gas costs. Currently, the challenge period for Optimistic Rollup is one week, but due to capital efficiency concerns, the community is actively discussing whether to shorten the challenge period.

7. OVM Virtual Machine


Optimistic Rollup not only supports the scalability of Ethereum but also incorporates the entire functionality of Ethereum smart contracts into the Layer2 framework, providing a Turing-complete OVM virtual machine for the development and deployment of dApps.

The OVM virtual machine is a feature-complete execution environment that is fully compatible with the Ethereum EVM virtual machine and designed for Layer2 systems. With the OVM virtual machine, developers can perform all Ethereum on-chain operations on the Rollup chain and interact with the blockchain through APIs. Additionally, the OVM virtual machine simplifies the process of porting dApps to Layer2. Instead of deploying various Layer2 scaling solutions, project teams can simply integrate with OVM and utilize its various Layer2 structures.

8. Conclusion


There are two Layer2 networks developed based on the Optimistic Rollup protocol: Optimism and Arbitrum. Currently, Optimism and Arbitrum are the largest Layer 2 ecosystems in the Ethereum space, with a total locked value of $4 billion and still experiencing significant growth. Many well-known projects have also joined the Optimistic Rollup camp, such as UniSwap, SushiSwap, and others.

However, Optimistic Rollup is not the only player on the field and faces competition from ZK Rollup. As mentioned earlier, Optimistic Rollup relies on fraud proofs, where the system optimistically believes in the correctness of transaction data and ensures transaction validity through the economic logic of fraud challenges. On the other hand, ZK Rollup is a scalability solution based on zero-knowledge proofs, where off-chain transactions are processed in batches and cryptographic validity proofs are generated to verify the authenticity of each batch of transactions. The superiority of one over the other requires further examination over a longer period of time.

市场机遇
4 图标
4实时价格 (4)
$0.01047
$0.01047$0.01047
-2.47%
USD
4 (4) 实时价格图表

热门加密动态

查看更多
“永不卖出”时代结束了吗?Strategy 亏本抛售比特币背后的资金链

“永不卖出”时代结束了吗?Strategy 亏本抛售比特币背后的资金链

概述 一家用六年时间和六百多亿美元建立比特币储备的公司,正在以低于成本价的水平卖出这些比特币,而它的创始人在同一天公开表示自己一聪都没有卖过。这两件事发生在 8 月 3 日的同一个上午。 据 The Block 的报道,Strategy 在 8-K 文件中披露上周售出 1,638 枚比特币,套现约 1.047 亿美元,持仓降至 842,138 枚,而 Michael Saylor 在数小时后于 X

比特币会在 8 月 9 日发生分叉吗?解析 BIP‑110 强制信号窗口期

比特币会在 8 月 9 日发生分叉吗?解析 BIP‑110 强制信号窗口期

概述 比特币的共识规则自 2021 年 11 月 Taproot 激活以来没有变过,这是历史上最长的一段平静期。8 月 9 日前后,这段平静会迎来第一次实质性的压力测试。根据 BIP-110 的正式文本,该提案在区块 961,632 至 963,647 之间设置了一个强制信号期,在这段窗口内,不发出第 4 位版本信号的区块会被执行该规则的节点判定为无效。 需要立刻说清楚的是,这不是一次已经获批的比

MEXC Alpha Trader-行业日报(2026.08.07)

MEXC Alpha Trader-行业日报(2026.08.07)

一、宏观与市场情绪 (行情数据) · BTC价格:$64,348(24h -0.28%) · 资金费率:+0.0019% · 恐惧贪婪指数:38(Fear) (重要节点预告) · 市场等待非农就业数据公布,以确认经济放缓预期;美联储戴利称若通胀压力加剧将采取激进利率应对措施。 二、交易信号 / 热点 黄金(重大催化) · 现货黄金站上4300美元/盎司,本周累涨250美元;美国7月ADP就业人数公

CLARITY 法案最后 48 小时:参议院能否在休会前完成表决?

CLARITY 法案最后 48 小时:参议院能否在休会前完成表决?

概述 美国加密行业等待了一年多的市场结构立法,现在被压缩进了一个以小时计算的窗口。参议院原定的会期结束日是 8 月 7 日,而截至 8 月 6 日发稿时,《数字资产市场清晰法案》(H.R. 3633)仍未出现在参议院议程上,也没有任何终结辩论动议被提交。CoinDesk 在对该法案可能结果的梳理中指出,参议院尚未表明是否会推进这部法案,会期只剩两天,官方也没有关于表决时间的任何说明。 市场关注这件

热门新闻

查看更多
特斯拉2026年第一季度财报回顾:交付量反弹,但利润率质量仍是真正的考验

特斯拉2026年第一季度财报回顾:交付量反弹,但利润率质量仍是真正的考验

特斯拉于2026年4月22日美国股市收盘后公布了其2026年第一季度的财务业绩。该公司本季度交付了358,023辆汽车,创造了224亿美元的总营收,并报告归属于普通股股东的GAAP净利润为4.77亿美元。总GAAP毛利率提升至21.1%,而营业利润率达到4.2%。 核心信号不仅在于特斯拉的交付量从去年同期的疲软基数中恢复。更重要的问题是:更高的交付量、FSD相关营收、更低的单车成本以及改善的汽车毛

苹果 2026 财年第二季度财报回顾:iPhone 营收与服务业务增长维持 EPS 预期

苹果 2026 财年第二季度财报回顾:iPhone 营收与服务业务增长维持 EPS 预期

苹果于 2026 年 4 月 30 日发布了 2026 财年第二季度财报,涵盖截至 2026 年 3 月 28 日的季度。总营收达到 1112 亿美元,同比增长 17%,摊薄后每股收益(EPS)增长 22% 至 2.01 美元。苹果表示,该季度创下了公司 3 月份季度的总营收、iPhone 营收和 EPS 纪录,同时服务业务营收也创下历史新高。 这不仅仅是一份常规的硬件周期财报。苹果第二季度的业绩

Hyperliquid 未平仓合约达 115 亿美元:链上永续合约是否正扩展至美国股市?

Hyperliquid 未平仓合约达 115 亿美元:链上永续合约是否正扩展至美国股市?

Hyperliquid的未平仓合约量已达到约115亿美元,创下2026年新高,其中HIP-3市场贡献了近40亿美元。与标普500指数挂钩的合约已成为最大的HIP-3市场,而追踪SK海力士和美光科技的合约则反映了对人工智能和半导体相关敞口需求的不断增长。

Coldcard Mk3 警告紧随 3800 万美元 Bitcoin 被扫荡事件,但原因仍未确认

Coldcard Mk3 警告紧随 3800 万美元 Bitcoin 被扫荡事件,但原因仍未确认

比特币硬件钱包制造商Coinkite已警告用户,Coldcard设备存在种子生成问题,影响从4.0.1版本起的所有Mk3固件版本。该警告是在安全研究人员调查一起涉及594.48 BTC(约合3,800万美元)的协同转移事件时发出的。然而,目前尚无公开的技术证据证实Coldcard的问题导致了这些转账。

相关文章

查看更多
MEXC Alpha Trader 投研周报 | 加息阴影笼罩,BTC 6.3万关口告急——非农周能否逆转?

MEXC Alpha Trader 投研周报 | 加息阴影笼罩,BTC 6.3万关口告急——非农周能否逆转?

2026年8月第1周统计周期:2026年7月29日 – 8月4日数据截止:2026年8月4日核心叙事过去一周,加密市场在FOMC利率决议与地缘政治的双重驱动下,走出了“决议前承压——决议后冲高——地缘恐慌急跌——周末修复”的完整周期。比特币在62,000-65,000美元区间反复拉锯,截至8月4日报约63,788美元,始终未能形成明确方向。FOMC“鹰派暂停”落地,9月加息概率跳升至63%。 北京

宇树科技IPO基本面:宇树盈利了吗?收入、机器人销量、利润率与研发解析

宇树科技IPO基本面:宇树盈利了吗?收入、机器人销量、利润率与研发解析

宇树科技已经从一家早期四足机器人公司,发展成为一家实现盈利、且人形机器人销量快速增长的机器人制造商。公司收入从2023年的1.59亿元增长至2025年的16.99亿元。人形机器人已经成为宇树科技最大的收入来源,公司整体毛利率上升,经营现金流也实现强劲增长。当前的IPO核心问题已经不再是宇树能否卖出人形机器人,而是在机器人价格下降、产量扩大和竞争加剧的情况下,公司能否继续维持利润率和现金创造能力。截

MEXC Alpha Trader 投研周报 | FOMC前夕多空决战,BTC 6.3万生死线告急——黄金坑还是无底洞?

MEXC Alpha Trader 投研周报 | FOMC前夕多空决战,BTC 6.3万生死线告急——黄金坑还是无底洞?

2026年7月第4周统计周期:2026年7月22日 – 7月28日数据截止:2026年7月28日核心叙事过去一周,加密市场经历了由晴转阴的戏剧性反转。前半周比特币尚在65,000-66,000美元区间窄幅拉锯,但随着美联储FOMC会议临近、加息预期陡然升温,市场情绪急转直下。截至7月28日,BTC已跌至63,000-63,350美元附近,创近11日新低。FOMC悬念为近两年之最,加息概率一度飙升至

打造最全交易生态,MEXC 助力长尾策略的无限机会

打造最全交易生态,MEXC 助力长尾策略的无限机会

在加密货币市场,主流币种如 BTC、ETH 的交易竞争已趋于白热化,而真正能带来超额收益的,往往是那些尚未被充分挖掘的长尾资产。MEXC 交易所凭借其 2674 个现货交易对与 1525 个合约交易对 的庞大生态,构建了一个覆盖主流币与新兴资产的“全品类交易宇宙”,成为全球交易者捕捉早期机会、执行长尾策略的核心平台。1.数据说话:全球最全的交易对生态截至 2025 年 10 月 14 日,MEXC

注册MEXC账号
注册 & 获得高达10,000 USDT奖金
您的稳定币真的安全吗?
您的稳定币真的安全吗?您的稳定币真的安全吗?
了解 USDT、USDC、OpenUSD 及 USD1 的风险