TeachMeBitcoin

Space Efficiency vs. Security

From TeachMeBitcoin, the free encyclopedia Reading time: 2 min

Space Efficiency vs. Security

The choice to use a 160-bit hash instead of a 256-bit hash (or the raw public key) was a fundamental optimization for the Bitcoin network. It balanced the need for security with the physical reality of hard drive and RAM limits.

1. Blockchain Bloat

The Bitcoin blockchain is an "Append Only" ledger. Every byte added to it must be stored by thousands of nodes forever.

While 13 bytes seems small, across hundreds of millions of transactions, this adds up to Gigabytes of saved space.

2. RAM Efficiency (The UTXO Set)

Full nodes keep the UTXO Set in high-speed RAM to validate transactions quickly.

3. The 160-bit Security Threshold

Is 160 bits "Safe enough"?

4. Collision vs. Pre-image

Identifier Size Security Level Purpose
X-Coordinate 32 Bytes 128 bits Signature Math
SHA256 Hash 32 Bytes 256 bits Intermediate Math
HASH160 20 Bytes 160 bits Network Efficiency

In the next section, we will discuss Quantum Resistance.

☕ Help support TeachMeBitcoin

TeachMeBitcoin is an ad-free, open-source educational repository curated by a passionate team of Bitcoin researchers and educators for public benefit. If you found our articles helpful, please consider supporting our hosting and ongoing content updates with a clean donation:

Ethereum: 0x578417C51783663D8A6A811B3544E1f779D39A85
Bitcoin: bc1q77k9e95rn669kpzyjr8ke9w95zhk7pa5s63qzz
Solana: 4ycT2ayqeMucixj3wS8Ay8Tq9NRDYRPKYbj3UGESyQ4J
Address copied to clipboard!