MASTERING-BITCOIN
A Bitcoin key is just a number. Whether it stays safe depends on how many pieces of software can reach it. We can reason about this with a simple "weakest link" model: if your machine runs software components and each has an independent probability of being malicious or compromised, then:
| Formula | Name | Description |
|---|---|---|
| Weakest-link safety | Your keys are safe only if all components are safe | |
| Compromise probability | It only takes one bad component to leak your keys | |
| Surface grows with software | More programs and authors = more doorways for an attacker |
Core idea: A chain breaks at its weakest link β and a general-purpose computer has thousands of links. Cold storage shrinks toward zero.
Your wallet's keys sit among thousands of programs β your browser, games, a PDF reader, dozens of background services. How quickly does the chance of compromise grow as you run more software?
Adjust the number of programs () and the per-program risk () and watch the breach probability climb.
β interactive visualization β coming to this page format soon
Notice: Even when each individual program is very unlikely to be malicious, stacking many of them together pushes the breach probability toward 100%. You don't need most of your software to fail β you need exactly one rogue component. This is why running fewer programs (and ideally none near your keys) matters so much.
The attack surface is the set of software components an attacker can reach to get at your keys. How does a normal computer compare to a paper backup or a dedicated hardware signing device?
Drag the slider to set how many programs run on your everyday computer, then compare the three storage approaches.
β interactive visualization β coming to this page format soon
Reflect: No matter how high you set the slider, the paper backup and the hardware signing device stay tiny. A flash drive hands over any file you ask for, but a signing device refuses to reveal the keys at all β it only returns a signature. With almost no general-purpose software, there is almost nothing to compromise.
Old-school thieves stole credit cards, but stolen card numbers aren't money yet β they must be fenced (laundered through middlemen), a lossy process, and charges are often reversible. Bitcoin removes that friction. How much value does an attacker actually keep in each case?
Set the value at risk and how efficiently a thief can fence a stolen card.
β interactive visualization β coming to this page format soon
Reflect: Lower the fencing efficiency and the credit-card thief loses most of the value β and the charges may be reversed anyway. Bitcoin has no such leak: the value is pure, immediate, and irrevocable. That makes your keys a far more tempting target, which is exactly why the same property that creates the risk also drives innovation in hardware encryption, multisig, and dedicated signing devices.
Question 1
True or False: "Cold storage means you can never spend your bitcoin."
β Correct! Cold storage keeps keys offline, but you can still receive and send β only the signing happens offline.
β Not quite. Cold storage isolates the keys, not your ability to transact. You can still receive and send.
Solution:
Cold storage means the private keys are generated and held on a machine that never connects to the internet. It does not mean the coins are frozen forever.
The keys never touch a networked computer, but spending is still fully possible. So the statement is False.
Question 2
Suppose your computer runs 1000 software components written by hundreds of different authors. For your wallet's keys to stay safe, how many of those components must be free of malware?
β Correct! A chain breaks at its weakest link β every single component must be safe.
β Not quite. It only takes one malicious component to leak your keys, so all of them must be safe.
Solution:
This is the weakest-link principle. Your keys are safe only if every component is safe:
It only takes one rogue program β a virus or trojan hidden among the thousands β to log your keyboard, read your files, find your keys, and ship them out through the internet pipe. So all 1000 components must be free of malware. A single compromised author breaks the chain.
Question 3
You feed an unsigned transaction into a hardware signing device. What does the device hand back?
β Correct! The keys stay sealed inside; only the signature comes out.
β Not quite. The whole point is that the keys never leave β the device returns only the signature.
Solution:
A hardware signing device has exactly one job: hold keys and produce signatures.
This is not just a fancy USB drive. A flash drive hands over whatever file you ask for, but a signing device refuses to reveal the keys at all. With no general-purpose software, the attack surface is tiny.
Question 4
Why is stolen Bitcoin a bigger prize for an attacker than stolen credit card numbers?
β Correct! Bitcoin is spendable as-is and transfers can't be reversed β pure, immediate value for a thief.
β Not quite. The fencing and reversibility burdens apply to cards. Bitcoin removes that friction, making it irreversible and instantly spendable.
Solution:
Stolen card numbers aren't money yet. Thieves had to fence them β launder the value through middlemen, fake purchases, and resale networks β a difficult, lossy process where most of the value leaked away, and charges were often reversible.
Bitcoin removes all that friction:
For an attacker, the reward is pure and immediate, which is a massive incentive. The correct answer is the third option.
Solved: 0 / 4