NewsCryptoWhat If AI Breaks Bitcoin’s SHA-256? Satoshi Had a Contingency Plan

What If AI Breaks Bitcoin’s SHA-256? Satoshi Had a Contingency Plan

Author: Cointelegraph·

Key Takeaways

  • •In October, Eigen Labs and Zcash's Shielded Labs launched the HashSmash competition, and within weeks a participant found a faster method for producing identical hash outputs on a weakened version of SHA-256 reduced to 39 of its full 64 rounds.
  • •Satoshi Nakamoto proposed more than 16 years ago that an abrupt SHA-256 failure could be handled by locking in the last trustworthy blockchain state and switching to a replacement hash, though experts warn the absence of an established consensus process could trigger a fork and void roughly 18,000 transactions for each lost hour of history.
  • •For a gradual weakening of SHA-256, Satoshi suggested a planned transition at a predetermined block height, but such a hard fork would leave the tens of billions of dollars invested in mining ASICs largely obsolete.
  • •Eigen Labs research head Soubhik Deb said SHA-256 is safe today by a wide margin, yet argued Bitcoin should begin moving to a replacement even if only a theoretical shortcut against the full algorithm is found.
  • •StarkWare co-founder Eli Ben-Sasson proposed an automatic transition to SHA-512 triggered by the first publicly demonstrated collision, warning that AI is exposing cryptographic vulnerabilities faster than expected and that Bitcoin should build a fallback now.
What If AI Breaks Bitcoin’s SHA-256? Satoshi Had a Contingency Plan

Artificial intelligence is advancing rapidly in mathematics, raising a difficult question for Bitcoin: Could AI eventually undermine the cryptography on which the network depends?

Theoretical computer scientist Scott Aaronson recently indicated that he was already aware of Anthropic’s new quantum lattice algorithm research. He also wrote that, “separately from that, I’ve heard endless rumors and speculations about what else the labs might have, including breaks that would cause imminent danger if they were real.”

“It would be astonishing good luck if all our current crypto protocols managed to survive the onslaught of the newly superhuman AI mathematicians without a scratch.”

Most discussion of Bitcoin’s cryptographic vulnerabilities has focused on its elliptic-curve signatures. It has been known for years that a sufficiently powerful quantum computer could use Shor’s algorithm to derive private keys from public keys.

A different concern would arise if a highly capable AI compromised SHA-256, the hash function underpinning Bitcoin mining and the blockchain’s historical record. Every Bitcoin block header commits to the hash of the block before it, and mining is the race to find block headers whose SHA-256 hash falls below the network’s difficulty target, so the same function protects both the creation of new blocks and the integrity of the chain’s past. No one has come close to breaking the full SHA-256 algorithm, and hash-based cryptography is generally regarded as highly resistant to quantum computers and AI-related attacks.

However, recent developments have renewed questions about how long that protection can be assumed. In October, Eigen Labs and the Zcash organization Shielded Labs launched HashSmash, a competition challenging participants to use AI agents against four cryptographic hash functions, including Bitcoin’s SHA-256. Within weeks, one participant found a faster method for producing the same hash from two different inputs on a weakened version of SHA-256 reduced to 39 rounds. The full algorithm runs 64 rounds, and whether techniques demonstrated on reduced variants can be extended toward the complete function is the measure of progress the researchers quoted here say matters most as the competition continues.

Bitcoin’s pseudonymous creator, Satoshi Nakamoto, considered the possibility of a cryptographic failure more than 16 years ago and outlined two possible ways the network could respond.

If SHA-256 failed without warning

Satoshi suggested preserving the blockchain’s last trustworthy state and continuing with a replacement hash function if SHA-256 were suddenly broken.

“If SHA-256 became completely broken, I think we could come to some agreement about what the honest blockchain was before the trouble started, lock that in and continue from there with a new hash function,” Satoshi wrote in a post on June 14, 2010.

That proposal was made before the Bitcoin community had gained experience with the difficulty of changing the protocol. Reaching agreement among Bitcoin’s participants can be challenging.

“There is no established process for this,” Christopher Smith, founder and CEO of Quantus, told Magazine.

Developers, miners, exchanges and other participants would have to agree on where the legitimate blockchain ended before the attack compromised it. The process could become contentious if there were no consensus about when the problem began.

“Major parties will almost certainly disagree, either honestly or maliciously, which could lead to a fork,” Smith said.

A rollback would also eliminate legitimate transactions confirmed after the agreed cutoff. At approximately five onchain transactions per second, losing even one hour of history could affect about 18,000 transactions, including payments for goods that had already been delivered and exchange withdrawals that had already been credited.

Restoring those payments would create a separate problem.

“Any reversed transactions would have to be squared up by the users themselves,” Smith said. Records on the abandoned chain could show that a payment had occurred, but the parties involved would have to reconcile the transactions themselves.

That issue also appeared in an early discussion on BitcoinTalk. In August 2010, a forum participant using the name “Inedible” asked whether transactions would have to stop while a patch was developed and whether users would then need to recreate payments made after the recovery point.

“Let’s say it’s a large organization and they put through 10,000 transactions an hour — that could be a lot of work to redo,” the participant wrote.

A planned phase-out of SHA-256

Satoshi proposed a different approach if SHA-256 weakened gradually. Developers could build and test software using a replacement hash function and set a future block height for the transition. The upgraded network would continue following the existing rules until that block, after which the replacement hash would be required.

“If the hash breakdown came gradually, we could transition to a new hash in an orderly way,” Satoshi wrote. “The software would be programmed to start using a new hash after a certain block number. Everyone would have to upgrade by that time.”

Unlike an emergency rollback, a planned transition could preserve transaction history and balances without discarding a period of legitimate activity. Advance warning would also give developers and other participants time to prepare.

“The biggest obstacle to changing the mining algorithm by far would be the obsolescence of all the mining equipment,” Smith said.

“Tens of billions have gone into the development and manufacturing of ASICs for mining and even a small change to the algorithm would render that equipment basically worthless,” he added.

The replacement network would also need an appropriate starting difficulty. Existing SHA-256 mining capacity would provide little guidance about the computing power that would be available for a different algorithm.

“And choosing the new hash will inevitably favor some players over others, so that will be sticky as well,” Smith said.

Soubhik Deb, head of research at Eigen Labs, told Magazine that Bitcoin should begin moving to a replacement before an attack became practical. He said that even a theoretical shortcut against the full SHA-256 algorithm could justify taking action.

“Bitcoin would need much of that time, because changing the mining hash requires a hard fork,” Deb said. A hard fork introduces rules that older software treats as invalid, meaning node operators, miners and wallet developers all have to upgrade in coordination rather than at their own pace.

StarkWare co-founder Eli Ben-Sasson has also argued that Bitcoin should prepare a fallback once signs of a problem emerge. He proposed an automatic transition to SHA-512, a hash function from the same SHA-2 family as SHA-256, triggered by the first publicly demonstrated collision, which occurs when two different inputs produce the same hash.

“If that happens, psychological confidence in Bitcoin breaks,” Ben-Sasson said.

He acknowledged that changing the mining algorithm would disrupt existing hardware but argued that advance notice could allow manufacturers to incorporate support for the replacement into future machines.

“Honestly, it would also be a great way for the Bitcoin network to practice agility and updating its core code.”

Satoshi expected SHA-256 to last decades

Satoshi’s contingency plan reflected strong confidence in Bitcoin’s underlying cryptography.

“SHA-256 is very strong. It’s not like the incremental step from MD5 to SHA1. It can last several decades unless there’s some massive breakthrough attack,” Satoshi wrote in 2010.

“SHA-256 is safe today by a wide margin,” Deb said.

He added that he would become more concerned if techniques used against weakened versions of SHA-256 could be extended to a larger portion of the algorithm’s rounds.

Even so, the experts said Bitcoin should prepare for the possibility of a breakthrough.

“SHA-256 is not the first hash function; it was preceded by others that were broken like MD4, MD5, SHA0, RIPEMD, HAVAL-128,” Smith said, adding that other hash functions have different and, in some cases, better security properties. In the broader security industry, demonstrated breaks of MD5 and, later, SHA-1 set off multiyear phase-outs of those functions from certificates and mainstream software.

“We don’t have hard proofs of security for anything in cryptography. We build things, then try to attack them, and if nobody visibly breaks it, we assume it is secure for now,” he said. “So yes, it is completely realistic to think that AI could weaken or even break these hash functions.”

Ben-Sasson also did not rule out an AI-driven breakthrough.

“The full 64-round function is still safe for now. But AI is exposing these vulnerabilities much faster than anyone expected,” he said. “The prudent thing is to build a fallback today.”

Source: Cointelegraph Magazine