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

  • ITI Opposes FCC's Inclusion of Optical Modules in Covered List

    According to the authoritative U.S. communications media Communications Daily, the Information Technology Industry Council (ITI) formally expressed its opposition to the Federal Communications Commission (FCC) last week, urging the FCC not to include foreign-manufactured optical modules in the restricted list. This represents the latest stance of the U.S. technology industry organization on this issue, further reducing the likelihood of a blanket inclusion of optical modules in the Covered List. In its latest submission to the FCC, ITI explicitly recommended that the Covered List should continue to adopt a 'precise, risk-based' approach, focusing on entities or products with clear ties to foreign adversaries, rather than broadly covering entire categories of technology from trusted companies. More importantly, ITI specifically stated that optical transceivers should not be included in the Covered List, particularly opposing the inclusion of all foreign-produced optical modules in the restrictions.

  • ITI Opposes FCC's Inclusion of Optical Modules in Covered List

    According to the authoritative U.S. communications media Communications Daily, the Information Technology Industry Council (ITI) formally expressed its opposition to the Federal Communications Commission (FCC) last week, urging the FCC not to include foreign-manufactured optical modules in the restricted list. This represents the latest statement from the U.S. technology industry organization on the matter, further reducing the likelihood of a blanket inclusion of optical modules in the Covered List. In its latest submission to the FCC, ITI explicitly recommended that the Covered List should continue to adopt a 'targeted, risk-based' approach, focusing on entities or products with clear ties to foreign adversaries, rather than broadly covering entire categories of technology from trusted companies. More importantly, ITI specifically stated that optical transceivers should not be included in the Covered List, particularly opposing the inclusion of all foreign-produced optical modules in the restrictions.

  • Ulanqab Plans 12.5GW, Surpassing OpenAI's Stargate Target

    According to Goldman Sachs, Ulanqab, a prefecture-level city in Inner Mongolia, has committed to a total data center capacity of approximately 12.5GW, which exceeds OpenAI's initial target of 10GW for Stargate. However, only about 1.2GW is currently operational. This expansion has primarily occurred in the past year, with over 70% of the capacity commitments made in this timeframe. DeepSeek plans to build approximately 1GW of data centers, while Xiaohongshu is reportedly considering a project of around 600MW. Companies like ByteDance and Alibaba have also entered the market. The area benefits from low land and electricity costs, cold weather, and proximity to Beijing. Dedicated fiber optics have reduced the average latency from Ulanqab to Beijing to under 5 milliseconds.

  • Ulanqab Plans 12.5GW, Exceeding OpenAI's Stargate Target

    According to Goldman Sachs, the city of Ulanqab in Inner Mongolia has a total committed data center capacity of approximately 12.5GW, which surpasses the initial 10GW target set by OpenAI for Stargate. However, only about 1.2GW is currently operational. This expansion has primarily occurred in the past year, with over 70% of the capacity commitments made in that timeframe. DeepSeek plans to build approximately 1GW of data center capacity, while Xiaohongshu is reportedly considering a project of around 600MW. Companies such as ByteDance and Alibaba have also entered the market. The area benefits from low land and electricity costs, cold weather, and proximity to Beijing. Dedicated fiber optics have reduced the average latency from Ulanqab to Beijing to under 5 milliseconds.

  • Saudi Reconnaissance Drone Shot Down in Yemen's Hajjah Province

    According to the Iranian Tasnim News Agency, a Yemeni military source stated that the Yemeni armed forces shot down a Saudi 'ScanEagle' reconnaissance drone over Hajjah Province while it was attempting to enter Yemeni airspace. The source informed the Yemeni official news agency that the drone was hit and downed using 'appropriate weapons'.

  • Iranian Parliament Speaker Mocks: U.S. Economic Pressure on Iran Will Backfire

    Iranian Parliament Speaker Mohammad Baqer Qalibaf shared an image on social media platform X, outlining the economic pressures against Iran and the impact of changes in the energy market on the U.S. economy. Referring to recent measures taken by Trump to control U.S. commodity prices, he wrote: 'Importing frozen meat to control meat prices? Well, maybe effective. But what is the U.S. plan for national debt? Want to import “frozen yields”? For the housing market, are you going to introduce “frozen buyers”? To address wage issues, are you going to issue “frozen payrolls”? A rigid and uninnovative foreign policy will lead to a frozen and stagnant economy. What is the only thing still functioning? It is the boomerang of imposing “devastating economic pressure” on Iran, which will ultimately come back to the U.S. itself.' (Jinshi)

  • US Military Casualties in Iran War Rise to 774

    According to the Washington Post, the casualty statistics system of the U.S. Department of Defense shows that the number of U.S. military casualties in the Iran war has risen to 774, including 18 deaths and 756 injuries. Even during periods without large-scale combat, the Department of Defense has quietly added about 60 new injury records recently. A significant number of the injured were affected by traumatic brain injuries caused by explosions when U.S. bases in Jordan, Kuwait, Iraq, and Saudi Arabia were attacked.

  • US Military Casualties in Iran War Rise to 774

    According to the Washington Post, the casualty statistics system of the U.S. Department of Defense shows that U.S. military casualties in the Iran war have risen to 774, including 18 deaths and 756 injuries. Even during periods without large-scale combat, the Department of Defense has quietly added about 60 new injury records recently. A significant number of the injured were affected by traumatic brain injuries caused by explosions during attacks on U.S. bases located in Jordan, Kuwait, Iraq, and Saudi Arabia.

  • Fed's Kashkari: U.S. Treasury Market is Operating Normally

    On August 23, Federal Reserve's Kashkari downplayed market concerns over rising U.S. Treasury yields, stating that the market is functioning well and that the recent surge is unlikely to impact discussions on monetary policy. Kashkari said on Sunday, "All signs indicate that the U.S. Treasury market is operating normally, trading is proceeding smoothly, and market liquidity is ample, so we can use the federal funds rate as the primary tool to reduce inflation." Last week, yields on U.S. Treasuries across various maturities rose, with the benchmark 10-year Treasury yield closing around 4.73%. The 30-year Treasury yield remained near its highest level since 2007. Kashkari noted that while current Treasury yields are relatively high compared to recent historical levels, they are much lower than those in the 1990s. "We need more data, but I don't want to prejudge the outcome of the next meeting," he said, "However, I do not currently believe that inflation will fall back to target levels in the short term." (Jin Shi)

  • Fed's Kashkari: U.S. Treasury Market Operating Normally

    On August 23, Federal Reserve's Kashkari downplayed market concerns regarding rising U.S. Treasury yields, stating that the market is functioning well and that the recent surge is unlikely to affect discussions on monetary policy. Kashkari said on Sunday, "All signs indicate that the U.S. Treasury market is operating normally, trading is proceeding smoothly, and market liquidity is sufficient, allowing us to use the federal funds rate as the primary tool for reducing inflation." Last week, yields on U.S. Treasuries across various maturities rose, with the benchmark 10-year Treasury yield closing at around 4.73%. The 30-year Treasury yield remained near its highest level since 2007. Kashkari noted that while current Treasury yields are relatively high compared to recent historical levels, they are much lower than those in the 1990s. "We need more data, but I don't want to prejudge the outcome of the next meeting," he said. "However, I do not currently believe inflation will fall back to target levels in the short term." (Jin Shi)