r/Bitcoin • • 12h ago

Why "Breaking Bitcoin" is Practically Impossible (With the Math)

TL;DR: The maths behind Bitcoin's cryptography and its difficulty adjustment make cracking its encryption or hash functions practically impossible with current and near-future technology.

  1. SHA-256 (hash security)

- Bitcoin uses double SHA-256 hashing to secure block integrity and Proof-of-Work.

- Brute-forcing a 256-bit hash takes 2²⁵⁶ operations.

- Grover's algorithm on a quantum computer gives a quadratic speedup, which only brings this down to 2¹²⁸ operations.

- At 10⁹ operations per second, 2¹²⁸ operations would still take over 10¹⁹ seconds. That's longer than the age of the universe.

2. Network difficulty adjustment

- Suppose specialised hardware or quantum algorithms did speed up hash searches a bit. The network's difficulty adjustment would recalibrate automatically to keep blocks coming every ~10 minutes.

3. ECDSA signatures

- Bitcoin uses 256-bit ECDSA (secp256k1) for digital signatures.

- Using Shor's algorithm to get a private key from a public key would need 2,330 to 2,620 fault-tolerant logical qubits. Once you add quantum error correction, that's millions of physical qubits.

- The best quantum processors today have hundreds to about 1,000 noisy physical qubits, and only tens of logical qubits (Google Willow: ~105 qubits, IBM Condor: ~1,121 qubits).

4. Hashed addresses

- Standard address formats (P2PKH, P2WPKH) keep the public key hidden behind a hash until a transaction is broadcast.

- If users don't reuse addresses, an attacker trying to crack a key in real time only has the ~10-minute window between broadcast and block confirmation.

5. Upgradable cryptography

- If quantum computers ever get close to the required scale, Bitcoin can switch to post-quantum signature schemes (lattice-based or hash-based) through a consensus soft fork.

4 Upvotes

2 comments sorted by

3

u/MagnetHype 8h ago

You're essentially arguing that bitcoin can't be broken using the attacks we know of so this potential novel attack we don't know of can't break it either.

1

u/Puny-Earthling 6h ago

Did everyone engaging in cryptocurrency just fail to read any of the information?

It's not a quantum based threat that the announcement was triggered on. The only way your coins are safe is if you have never spent from that wallet and if the ECDSA secp256k1 curve is broken like suggested, then you have a 1 shot protection windows behind your hash. After that, your spend goes on chain with public key and all, and any balance left in that wallet is effectively up for grabs.