How Satoshi Nakamoto thought Bitcoin could replace SHA-256

How could Bitcoin switch hash functions without losing its block history? Satoshi Nakamoto addressed that question in a June 14, 2010, BitcoinTalk reply about SHA-256 collisions, where different inputs produce the same hash. The reply drew renewed attention on December 3, 2026, amid concerns about threats from AI and quantum computing. Nakamoto was discussing SHA-256, the hash function used in Bitcoin mining and its blockchain. The more recent concerns center mainly on secp256k1, the elliptic curve Bitcoin uses for transaction signatures.

Nakamoto described SHA-256 as more than an incremental advance of the kind seen in the move from MD5 to SHA-1. Barring a breakthrough attack, he thought it could remain secure for decades. He outlined two hypothetical responses, depending on how it failed:

  • A complete break: The community could agree on the honest chain as it stood before the problem arose, lock in that history and continue with a new hash function.
  • A gradual weakening: Developers could set the software to switch to a new hash function after a specified block height, meaning a particular position in the chain. Everyone would need to upgrade. The software could also store a hash of each old block calculated with the new function, so it could distinguish the original block from one with different contents but the same SHA-256 hash.

Further reading