Sub topic 10
Multisignature: removing the single point of failure
This chapter assumes you know the earlier material in this tutorial. You should be able to explain a seed phrase, tell a hot wallet from a cold wallet, and describe how a transaction is signed offline. The examples use Bitcoin, where multisignature is built into the script system. Other chains offer similar features, and the differences are noted where they matter.
The problem with one key
Every setup so far has had a single point of failure. A single-key wallet, hot or cold, is controlled by one secret. If that secret is stolen, someone else can spend the funds. If it is lost, nobody can spend them. Hardware wallets and air-gapped signing lower the chance of theft, but the seed phrase backup is still one object that can be burned, found by a thief, or forgotten.
Multisignature (multisig) changes the rule for spending. Instead of one key being enough, the funds are locked so that a transaction is valid only when it carries signatures from m keys out of a group of n keys. This is called an m-of-n policy.
The two failure modes now have separate tolerances:
- Theft tolerance: an attacker needs m keys, so up to m − 1 keys can be compromised without loss of funds.
- Loss tolerance: you need m working keys, so up to n − m keys can be lost without losing access.
A single key (1-of-1) tolerates neither. Raising m improves theft resistance, and lowering m improves loss resistance. The value of n is how many separate things you must look after.
How m-of-n works on Bitcoin
A multisig address commits to a script that lists n public keys and the threshold m. When you spend, you reveal the script and supply m valid signatures. The network checks the signatures against the listed public keys. No private key is ever combined or shared. Each signer signs independently, which is why the signing devices never need to meet.
The practical flow reuses the PSBT (partially signed Bitcoin transaction) process from the offline signing chapter. A coordinator, usually a watch-only wallet on an online machine, builds the unsigned transaction. The PSBT then passes from signer to signer, and each one adds a signature. When it has m signatures, the coordinator finalizes and broadcasts it.
Script multisig versus threshold signatures
Two different technologies are both called multisig, and they differ in ways that affect privacy, fees and compatibility.
| Property | Script multisig (for example P2WSH) | Threshold signature (MPC, MuSig2, FROST) |
|---|---|---|
| Where the rule is enforced | On the blockchain, in the script | Off-chain, by the signing protocol |
| What appears on-chain | Several public keys and signatures | One public key and one signature |
| Transaction size and fees | Larger as n and m grow | Same as a single-key spend |
| Privacy | The spend reveals a multisig policy | Looks like an ordinary single-key spend |
| Signing process | Each device signs independently | Signers exchange messages over several rounds |
| Hardware wallet support | Broad | Limited and still maturing |
For most individuals, script multisig is the better-supported choice today. On Ethereum-style chains the usual equivalent is a smart contract wallet such as Safe. The contract holds the funds and checks the approvals, so the rule is enforced by code you must trust and that can have bugs.
Quantifying the trade-off
The tolerances above can be computed directly. The following Python program checks, for a given policy, whether funds remain spendable and whether they remain safe.
def check(m, n, keys_lost, keys_stolen):
"""Return (spendable, safe) for an m-of-n policy.
keys_lost: keys you can no longer use.
keys_stolen: keys an attacker holds a copy of. Stolen keys that
you still hold also count as usable for you.
"""
if not 1 <= m <= n:
raise ValueError("need 1 <= m <= n")
if keys_lost < 0 or keys_stolen < 0:
raise ValueError("counts cannot be negative")
spendable = (n - keys_lost) >= m
safe = keys_stolen < m
return spendable, safe
policies = [(1, 1), (2, 2), (2, 3), (3, 5)]
for m, n in policies:
print(f"{m}-of-{n}: tolerates {n - m} lost key(s), {m - 1} stolen key(s)")
print(check(2, 3, keys_lost=1, keys_stolen=1)) # (True, True)
print(check(2, 2, keys_lost=1, keys_stolen=0)) # (False, True)
print(check(1, 1, keys_lost=0, keys_stolen=1)) # (True, False)The 2-of-2 line shows the main trap. It is strong against theft, since an attacker needs both keys, but it tolerates no loss at all. Losing one key locks the funds permanently. For personal storage, 2-of-3 is the usual starting point because it tolerates one loss and one theft at the same time.
Common configurations
| Policy | Tolerates lost | Tolerates stolen | Typical use |
|---|---|---|---|
| 1-of-2 | 1 | 0 | Shared access, not extra security. Either holder can spend alone. |
| 2-of-2 | 0 | 1 | Joint accounts where both parties must agree. Fragile for personal savings. |
| 2-of-3 | 1 | 1 | Personal savings and small organizations. |
| 3-of-5 | 2 | 2 | Larger holdings, treasuries, and families with several trusted holders. |
Larger groups tolerate more, but each extra key is another device and backup to store, update and eventually recover. Complexity creates its own risk.
Placing the keys
Multisig only removes the single point of failure if the keys fail independently. The point of the design is that no single event takes out m keys or exposes them. Several rules follow from this.
- Use separate seeds. Each key must come from its own seed phrase, generated on its own device. Deriving all keys from one seed gives you n keys but a single backup to steal.
- Separate locations. Keep keys in different buildings or at least different secured places. A fire or burglary should reach fewer than m of them.
- Mix vendors and models. A firmware bug or supply-chain flaw in one hardware wallet brand should not affect every key.
- Keep the keys apart in time and role. Do not let one person hold m keys unless that is the explicit intention.
Multisig also combines well with the hot and cold tiers. A common arrangement for the cold tier is 2-of-3 with all three keys on hardware wallets. A variant for people who want help with recovery is 2-of-3 where one key is held by a collaborative custody provider. That provider cannot spend alone, and you can still spend with your two own keys if the provider disappears. A hot multisig, where one key sits on a phone and one on a hardware device, gives a spending wallet that malware on the phone cannot drain alone.
What you must back up besides the seeds
Multisig adds a backup requirement that single-key wallets do not have. A seed phrase restores one key. To rebuild the wallet you also need to know which public keys, which threshold, which script type and which derivation paths were used. Together these form the wallet descriptor, or the wallet configuration file exported by your wallet software. In Bitcoin Core's descriptor syntax, a 2-of-3 policy looks like wsh(sortedmulti(2,<xpubA>,<xpubB>,<xpubC>)). The <xpub...> parts are placeholders for the extended public keys of each signer.
Extended public keys cannot spend funds, but they reveal your addresses and balances to anyone who holds them. Store the descriptor with each key's backup, but treat it as private. If you lose all of your seeds' context except the seeds themselves, recovery is still possible in principle, because you can try the common script types and paths. That search is slow and error-prone, so do not plan on it.
Operational costs and failure modes
Multisig is not free. Know what you are accepting before you adopt it.
- More moving parts. Setup takes longer, signing takes several devices, and every key needs its own care. Most multisig losses come from setup and recovery mistakes, not from cryptographic attacks.
- Higher fees and lower privacy on script multisig. Spends are larger, and the on-chain script reveals the policy and the number of signers.
- The coordinator is a target. The online watch-only wallet cannot sign, but it chooses the transaction you are shown. If malware swaps the destination address, you will sign the wrong payment unless each signing device displays and you verify the real destination and amount.
- Verify addresses on the devices. When you create the wallet, confirm the first receiving address on every signing device. Matching addresses prove that all of them agree on the same keys and paths.
- Software and firmware changes. A key that a future wallet application cannot import is as good as lost. Prefer open standards (PSBT, descriptors) and keep your wallet's configuration export.
- Inheritance and bus factor. If only you know how the setup works, your heirs may be unable to use it. Write instructions that someone technical could follow. The recovery planning chapter covers this.
Choosing between single key and multisig
Use these criteria rather than a rule of thumb about balance size.
- What does losing the funds cost you? If the loss would be painful but survivable, a single hardware wallet with a well-protected, tested backup is usually enough.
- Can you maintain it? Multisig that is set up once and never tested is riskier than a simple setup that you practice.
- Who are the threats? Multisig helps most against a single compromised device, a single stolen backup, and a single trusted person going wrong. It does little against a fully coerced owner who can reach all of the keys.
- Do several people need to agree? A business, family or group treasury that needs shared control benefits from multisig even at smaller amounts.
- How long must the funds sit? Funds meant to last decades, through changes of device and of owner, benefit more from a design with loss tolerance.
Exercise
A 3-of-5 multisig wallet has two of its keys destroyed in a house fire, and a thief copies a third key from a drawer, while you still hold that key. Can you still spend, and can the thief spend alone? Explain using the m and n values.
Show answer
Yes, you can still spend. Five keys minus two destroyed leaves three usable keys, and the threshold m is 3, so the spendable condition (n - lost >= m) holds exactly. The thief holds one key, which is fewer than m = 3, so the thief cannot spend alone. The wallet has no loss margin left, though, and you should rotate to new keys right away.
Exercise
You build a 2-of-3 wallet by generating one seed phrase and deriving three accounts from it, to avoid managing three backups. What have you given up, and what should you do instead?
Show answer
You have given up the independence of the keys. Anyone who obtains the one seed phrase can derive all three keys and meet the threshold alone, so the wallet is effectively single-key with extra complexity and fees. Instead, generate three separate seeds on three separate devices, store them in separate places, and back up the wallet descriptor with each one.
Exercise
Your 2-of-3 wallet's three seed phrases are safely stored, but you have lost the computer and have no copy of the wallet descriptor. Why is recovery harder, and what could you have done to prevent it?
Show answer
A seed phrase restores only one key. Without the descriptor you do not know the other signers' extended public keys, the script type or the derivation paths, so you cannot reconstruct the addresses without a slow search. You could have stored the exported descriptor or configuration file with each key's backup and tested a restore on a fresh device.