What if AI breaks Bitcoin’s SHA-256? Satoshi had a plan

Artificial intelligence is making rapid advances in mathematics, raising an uncomfortable question for Bitcoin: Could it eventually undermine the cryptography the system relies on?
Last week, theoretical computer scientist Scott Aaronsonindicated he was already aware of Anthropic’s new quantum lattice algorithm research, and added 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 research to date has focused on Bitcoin’s elliptic-curve signatures as it’s been known for years that a sufficiently powerful quantum computer could reverse engineer private keys from public keys using Shor’s algorithm.
But what if a super intelligent AI is able to compromise SHA-256, the hash function that underpins Bitcoin’s mining and blockchain history?
Nobody has ever come close to breaking the full SHA-256 algorithm and hash based cryptography is considered the gold standard to protect against quantum computers and AI. But we’re entering a brave new world, where anything seems possible. In October, Eigen Labs and 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, a participant found a faster way to make two different inputs produce the same hash on a weakened version of SHA-256 that was cut to 39 rounds.
Bitcoin’s pseudonymous creator, Satoshi Nakamoto, considered the possibility more than 16 years ago and outlined two ways the network might survive.
If SHA-256 suddenly broke without warning
Asked what would happen if SHA-256 were suddenly cracked, Satoshi suggested preserving the blockchain’s last trustworthy state and continuing with a replacement hash function.
“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 said in a post on June 14, 2010.

Satoshi Nakamoto’s 2010 post about SHA-256 collisions. Source: Bitcointalk
But Satoshi’s plan was made without any knowledge of how difficult it is to make any changes to the protocol. The Bitcoin community has a hard time agreeing on anything.
“There is no established process for this,” Christopher Smith, founder and CEO of Quantus, tells Magazine.
Developers, miners, exchanges and other participants would need to agree on where the legitimate blockchain ended before the attack compromised it. It could be contentious if nobody agrees exactly when the trouble began.
“Major parties will almost certainly disagree, either honestly or maliciously, which could lead to a fork,” says Smith.
A rollback would also discard legitimate transactions confirmed after the agreed cutoff. At roughly five onchain transactions per second, even an hour of lost history could affect around 18,000 transactions — including payments for goods already delivered or exchange withdrawals already credited.
Recovering those payments would create another problem.
“Any reversed transactions would have to be squared up by the users themselves,” he says. Records on the abandoned chain could provide evidence that a payment had been made, but reconciling it would fall to the parties involved.
That problem surfaced in the original discussion on BitcoinTalk. In August 2010, a forum participant posting as “Inedible” asked whether transactions would have to stop while a patch was developed, followed by users recreating 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,” they said.
So then how does the escape plan change if SHA-256 were to weaken gradually?
A planned SHA-256 phase-out
If SHA-256 were to weaken over time, Satoshi instead suggested that developers would build and test software that replaces SHA-256, setting a future block height as the switchover point.
The upgraded network would follow the existing rules until that block, then require the replacement hash function.
“If the hash breakdown came gradually, we could transition to a new hash in an orderly way,” he said. “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 the transaction history and balances without discarding a period of legitimate activity. In this case, more warning would help developers prepare.
“The biggest obstacle to changing the mining algorithm by far would be the obsolescence of all the mining equipment,” Smith explains.
“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 adds.

Source: Dariia Porechna
The replacement network would also need an appropriate starting difficulty. Existing SHA-256 mining capacity would offer little guidance about how much computing power 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.”
Soubhik Deb, head of research at Eigen Labs, tells Magazine that Bitcoin should begin moving to a replacement before an attack becomes practical. Even a theoretical shortcut against full SHA-256 would be enough to warrant action.
“Bitcoin would need much of that time, because changing the mining hash requires a hard fork,” he says.
StarkWare co-founder Eli Ben-Sasson also argues that Bitcoin should prepare a fallback once signs of trouble appear, proposing an automatic transition to SHA-512 that is triggered by the first publicly demonstrated collision. A collision occurs when two different inputs produce the same hash.
“If that happens, psychological confidence in Bitcoin breaks,” says Ben-Sasson.
He acknowledges that changing the mining algorithm would disrupt existing hardware, but argues that advance notice could give manufacturers time to incorporate support into future machines.
“Honestly, it would also be a great way for the Bitcoin network to practice agility and updating its core code.”
Satoshi thought SHA-256 could last decades
Satoshi’s original contingency plan came with considerable 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,” he wrote in 2010.
“SHA-256 is safe today by a wide margin,” Deb says.
But Deb adds he would become more concerned if the techniques used against weakened versions of SHA-256 could be extended to more of the algorithm’s rounds.
The experts nevertheless argue that 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,” says Smith, adding that there are hash functions with different and sometimes better security properties.
“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 explains.
“So yes, it is completely realistic to think that AI could weaken or even break these hash functions.”
Ben-Sasson also leaves the door open to 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 says.
“The prudent thing is to build a fallback today.”
*Magazine:* *Bitcoin turns 18: Has the original rebel grown up?*
Leggi l'originale su Cointelegraph




