How hashing, keys, and signatures turn pure math into digital money you can actually own.
Start Here
A cryptocurrency has no coins, no vault, and no bank. So what stops you from spending money you don\u2019t have, or someone copying your balance? The answer is cryptography. Three mathematical tools — hash functions, key pairs, and digital signatures — do the entire job. Let\u2019s see how each one turns abstract math into real, ownable money.
Tool 1
A hash function like SHA-256 takes any input and returns a fixed 256-bit fingerprint. Change one letter and the entire output scrambles — the avalanche effect. It\u2019s a one-way street: easy to compute forward, impossible to reverse.
Blockchains use hashing to chain blocks together. Each block stores the hash of the previous block, so editing an old block changes its hash and breaks every block after it. That\u2019s what makes the ledger tamper-evident.
This uses your browser\u2019s built-in cryptography — the same SHA-256 Bitcoin uses. Type anything and watch the fingerprint change instantly.
Tool 2
A wallet is really just a pair of numbers linked by elliptic-curve math. Your private key is a giant secret number. Multiply the curve\u2019s base point G by it and you get your public key — easy forward, impossible to reverse (the ECDLP from the Quantum page).
Notice the address is a hash of the public key. That extra layer is exactly why an un-spent Bitcoin address hides your public key from a future quantum attacker.
Tool 3
To spend coins you sign the transaction with your private key using ECDSA. Anyone can verify the signature with your public key, but nobody can forge it without the secret. This proves ownership without ever revealing the private key.
Three guarantees fall out of this single step:
Fun Graphic
Thousands of transactions get hashed in pairs, again and again, until a single Merkle root summarises them all. Change any transaction and the root changes — so a tiny 32-byte number guards the whole block.
Putting It Together
The Math of Mining
Miners repeatedly change a nonce until the block hash is smaller than a target value — i.e. it starts with enough leading zeros.
There\u2019s no shortcut — you just keep guessing. With difficulty this high, the whole Bitcoin network computes hundreds of quintillions of hashes per second. That mountain of work is what makes rewriting history economically impossible.
Hashing secures the chain, key pairs prove ownership, and signatures authorise spending. Remove any one and the whole system collapses. That\u2019s why a threat to cryptography — like quantum computing — is really a threat to cryptocurrency. Explore that on the Quantum page.