Cointime

Download App
iOS & Android

Release Blockhash Opcode Restrictions with zk-SNARKs for Optimistic Bridges

Repost from Ethresearch by tomo_tagami : “Release Blockhash Opcode Restrictions with zk-SNARKs for Optimistic Bridges” The full report and all related findings are available on the official website of Ethresearch.

This post is a proposed solution to release the restrictions that exist in Ethereum opcode by using zk-SNARKs. Furthermore, I hope to use this idea to solve the challenges of the optimistic bridges.

TLDR

  • Ethereum has a blockhash opcode restriction commonly known as the “256 block problem”.
  • This restriction means that the dispute period of the optimistic bridge is only about 51 minutes.
  • To increase the dispute period, use a client that proves the blockhash hash-chain by using zk-SNARKs.
  • Create a circuit of hashes leading up to the targeted blockhash by accessing backward from the latest opcode

Review of the optimistic bridge

If you already know about the optimistic bridge, please skip this part.

Optimistic bridges rather than requiring Ethereum to validate every bridge transaction, the protocol inspects only those that might be fraudulent. Suspicious activity can lead to a dispute, triggering a verification process settled by Layer 1.

Optimistic bridge consists of three participants - User, Relayer and Disputer. Relayer’s actions are constantly monitored by disupters and thrashed if fraud is discovered. See this post for more details.

Blockhash opcode

Ethereum has a blockhash opcode restriction commonly known as the “256 block problem”. The maximum number of blocks that can be referenced by Ethereum’s blockhash opcode is 256 blocks, and older blocks cannot be referenced.

This restriction means that at optimistic bridge, the time available for transaction verification by blockhash is only about 51 minutes (= 12 sec x 256 blocks). Consequently, the window for raising disputes is limited to approximately 51 minutes (12-second block time *256 blocks). In practical terms, this means that if disputers wish to challenge a relayer’s action, they have only about 51 minutes to do so, as the dispute process requires them to present the block hash of the contested transaction block as evidence. This tight timeframe could compromise system security and diminish the overall user experience.

Potential solution using zk-SNARKs

To address this restriction, I propose a solution leveraging zk-SNARKs.

Every block hash inherently embeds information from its predecessor. Given this property, it’s possible to create a cryptographic circuit that verifies the chain of block hashes, even beyond the most recent 256. This is done by anchoring the sequence with a block hash currently accessible via the blockhash opcode and tracing back to an older target hash.

In technical terms, if n1 represents the block number with the opcode-accessible block hash and n2 represents the block number of our target hash, the circuit would be designed to take three primary inputs:

  • Block hash from block n1.
  • All block headers between n1 and n2.
  • Target block hash from block n2.

These operations will utilize RLP encoding and the Keccak256 hash function. This circuit proves that there is a hash connection up to the target block hash.

The following image provides a visual representation of this chain of hashes. However, in practice, the circuit computes this in reverse order. While this graphic specifically illustrates a block hash chain on Ethereum, the principle could also extend to Layer 2 networks.

circuit1721×1080 137 KB

Although this approach is in the research phase and awaits full implementation—primarily because of its intricate nature—it seems almost inevitable that such zk circuits will find integration within the bridge dispute mechanism. This is especially true considering some Layer 2 networks impose even tighter restrictions on block hash access than the 256-block restriction.

Comments

All Comments

Recommended for you

  • Bernstein Analyzes AI Infrastructure Costs: Up to $39.5 Billion Investment per Gigawatt

    On October 10, Bernstein's research report revealed that the capital expenditure required to build a 1GW data center using different AI accelerator architectures ranges from approximately $34.6 billion to $39.5 billion. Among these, the construction cost of NVIDIA's Vera Rubin architecture is the highest, while OpenAI's self-developed ASIC architecture, Jalapeno, is relatively lower. Bernstein significantly revised its cost expectation for NVIDIA's Rubin NVL72 single rack from $9.1 million to $7.52 million, a reduction of about 17%, primarily reflecting adjustments in expectations for HBM prices and NAND storage capacity. The report also pointed out that the main economic burden of AI data centers is not electricity costs, but rather the substantial capital expenditures and the depreciation they generate.

  • China Securities Regulatory Commission Holds Expert Seminar on Capital Market and Financial Situation

    On October 10, Wu Qing, Secretary of the Party Committee and Chairman of the China Securities Regulatory Commission (CSRC), held a seminar in Beijing to engage in in-depth discussions with leaders of listed companies and experts from securities and fund institutions, gathering opinions and suggestions on the current capital market and financial situation. During the seminar, participants unanimously agreed that China's macroeconomic environment is steadily improving, the industrial structure transformation is deepening, and the capital market is operating robustly, with multi-level market functions being effectively utilized. Although facing some risks and challenges, the trend of high-quality development remains unchanged, and there is confidence in economic operations and the capital market. Additionally, the attending experts provided specific suggestions for better promoting the stable and healthy development of the capital market, which mainly include: continuously strengthening the mechanisms for market stability, further broadening the sources, channels, and methods for medium- and long-term funds to enter the market, and developing patient capital; encouraging listed companies with conditions to increase dividend repurchases and improve mechanisms for investor returns and rights protection; optimizing the issuance and listing system to support the development of high-quality enterprises from various types and industries; enhancing trading supervision and strengthening cross-border risk monitoring and response; and researching and reserving more incremental policy tools, among others. Wu Qing expressed that listed companies and industry institutions are important entities in the market and hopes that everyone will actively provide suggestions to jointly build a better capital market, which will better reward investors and contribute positively to the construction of Chinese-style modernization. Relevant officials from the CSRC also participated in the seminar.

  • Changxin Technology's New Breakthrough: 4F² Architecture Products Expected by Year-End

    On October 10, Changxin Memory's 4F² DRAM architecture research and development recently made significant progress. Dr. Cao Kanyu, the company's president, delivered a speech at the Fourth Integrated Chips and Chiplet Conference, providing a comprehensive overview of Changxin Memory's technological explorations and accumulations in DRAM devices, 4F² architecture, and hybrid bonding. He officially announced that a new generation of DDR5 RDIMM products, incorporating these advanced technologies, is expected to be launched by the end of the year.

  • Hyperliquid Whale Holds $32.36 Million Bitcoin Short Position on 10/10 Crash Anniversary

    On October 10, Bitcoin.com reported that a Hyperliquid whale holds a short position of 391.48 BTC, valued at $32.36 million, on the anniversary of the '10/10 Crash.' The average entry price is $82,863.10, utilizing 13x leverage, with an account equity of $7.19 million and a liquidation price of $99,801.20, approximately 20% higher than the current price. Data shows that this address has conducted a total of 4,726 transactions, with perpetual contracts yielding a profit of $952,000 in the past week and a maximum drawdown of 11.03%. As of the time of writing, the short position has an unrealized profit of about $75,500. On October 10, 2025, the crypto market experienced the largest liquidation event in history, clearing over $19.1 billion in leveraged positions. Bitcoin is currently priced at approximately $82,754, down about 34% from its historical peak of $126,080. According to Coinglass, if BTC rises to $85,000, around $3.3 billion in short positions will be at risk. Hyperliquid has approximately 38,040 BTC in open contracts, with this whale accounting for about 1%.

  • Morgan Stanley Increases Bitcoin Holdings to 10,639 Units

    On October 10, Morgan Stanley increased its Bitcoin holdings by 91.69 units through its spot Bitcoin exchange-traded fund MSBT, bringing the total holdings to 10,639 units, currently valued at approximately $880 million.

  • Strive Raises Approximately $55 Million, Enough to Purchase About 638 Bitcoins

    On October 10, according to Bitcoin.com, Strive's SATA preferred stock raised approximately $55 million this week, sufficient to buy about 638 bitcoins. This figure comes from a weekly dashboard snapshot provided by the tracking platform Bitcointreasuries.net, which only accounts for transactions with a face value of $100 or more, and estimates the number of new shares sold through the ATM program based on capture rates adjusted by SEC filings. SATA traded above face value for most of October 5 and 6, but fell below face value from Wednesday to Friday, leading to a suspension of issuance—this is an inherent brake in such mechanisms: issuing new shares below face value would erode the program's commitments and requires buyers to push up the price for resumption. During the same period, Michael Saylor's Strategy did not sell any STRC shares from September 28 to October 4, while the 334 BTC purchased from October 1 to 4 were funded by the sale of MSTR common stock, increasing its holdings to 848,000 BTC. As of October 2, Strive held 29,462 BTC. The 8-K filings from both companies on Monday are expected to confirm the actual number of bitcoins purchased.

  • State Council Issues Guidelines for Building a National Blockchain Network

    On October 9, according to Xinhua News Agency, the Central Committee of the Communist Party of China and the State Council issued the "Opinions on Developing New Quality Productive Forces," which consists of seven sections and nineteen articles. The guidelines propose leading with technological innovation and focusing on significantly enhancing total factor productivity as a core indicator. They emphasize innovation-driven development, reform as a key priority, adapting to local conditions, and establishing foundations before breaking new ground. In terms of industry, the guidelines call for cultivating and expanding emerging industries, strategically planning for future sectors such as quantum technology, biomanufacturing, hydrogen energy, nuclear fusion energy, brain-computer interfaces, embodied intelligence, and sixth-generation mobile communications. They also advocate for the comprehensive implementation of the "AI+" initiative to accelerate the application of new-generation intelligent terminal scenarios like humanoid robots. Regarding incentives and financial support, the guidelines propose establishing a corporate R&D reserve fund system, increasing the proportion of deductible R&D expenses for enterprises, and improving support policies for long-term capital investment in early-stage, small-scale, long-term, and hard technology projects. They aim to strengthen patient capital, enrich the system of technology innovation bond products, support quality tech enterprises in going public for financing, and optimize systems for mergers, acquisitions, and equity incentives for tech companies. The guidelines also stress the importance of avoiding superficiality, seeking grandiosity, and creating bubbles. They strictly prohibit the abuse of policies under the guise of developing new quality productive forces and will hold serious accountability for significant losses caused by blind investments and herd behavior.

  • Grayscale Ethereum Trust ETF Acquires $103.3 Million in ETH Over 20 Days, ETHE Sees $71.6 Million Outflow

    On October 10, monitoring by Arkham revealed that the Grayscale Ethereum Trust ETF has accumulated approximately $103.3 million in ETH over the past 20 days. During the same period, the ETHE fund experienced an outflow of about $71.6 million, while Grayscale clients net purchased approximately $31.7 million in ETH.

  • US Initiates 337 Investigation on AI Server Power Products, 20 Companies Listed

    On October 10, according to Tonghuashun news, on October 9 Eastern Time, the U.S. International Trade Commission (USITC) announced the initiation of a 337 investigation into 'certain vertical power transmission systems, their components, and computing systems containing such systems,' targeting the power supply segment for AI servers. A total of 20 companies are named, including Luxshare Precision, Foxconn Industrial Internet, Hon Hai, Hongbai Technology, Delta Electronics, Quanta Computer, Cloud Computing, Infineon, ChipSource Systems, Flex, and Tianhong Technology, spanning mainland China, Taiwan, the United States, Germany, Singapore, and Canada. The investigation stems from a complaint filed by Massachusetts-based power module manufacturer Vicor on September 9, alleging that the products in question infringe its patents and requesting the issuance of a limited exclusion order and a cease-and-desist order. This marks Vicor's third similar complaint in three years. According to USITC procedures, a target date for conclusion will be set within 45 days of the case being filed, and it will take a considerable amount of time to reach a formal conclusion.

  • Robinhood Crypto Explores Launching Stock Tokens with T. Rowe Price Digital Assets

    On October 10, Robinhood Crypto is exploring the launch of stock tokens linked to actively managed ETFs on the Robinhood Chain in collaboration with T. Rowe Price Digital Assets, which manages assets worth $1.9 trillion. The partnership is in the exploratory phase, and the potential product launch requires legal due diligence, approval from the issuer's board, final terms announcement, and regulatory approval from relevant jurisdictions. There is currently no guarantee that the collaboration will proceed or that the product will be launched, and specific details regarding the format, timing, and applicable regions have yet to be determined.