Start investing in Bitcoin with Pix, in a few minutesSponsoredOpen free account
Bitcoin

Multisig on Bitcoin: How it works and how to build a 2 of 3 wallet

Dividing the control between multiple keys eliminates the single point of failure. See how to do this without creating a new backup risk.

Multisig quorum simulator

Choose how many keys there are and how many signatures are required. Then simulate lost keys and leaked keys to see if the backgrounds are still accessible and protected.

"Lost" is a key you no longer have. "Vazada" is a key you still have, but that an attacker copied.

By Boletim Bitcoin newsroom

. 8 min reading.

In short: Multisig is a Bitcoin wallet that requires several signatures to spend, in the M format of N: in a 2 of 3, there are three keys and any two move the funds. This eliminates the single point of failure. Losing a key doesn't lock everything, and stealing a key is not enough to take the money. The price is more complexity in the backup. Use the simulator to test quorums.

In a common wallet, a single private key controls everything. If someone photographs your seed phrase, takes the balance. If a fire destroys the only paper where it was, the balance is lost forever, thickening the list of lost bitcoins. Multisig exists to undo this trap: the control is divided between several keys, stored in different places and devices.

How does the M of N work?

Bitcoin has its own scripting language, and one of its instructions, OP_CHECKMULTISIG, Checks if a minimum number of valid signatures has been displayed for a set of public keys. The M standard for transactions was described in BIP 11, and BIP 16 created the P2SH, which made it possible to hide the MultiSIG script behind a common address and only reveal it when spending. Today, the most used form is the SegWit version, called P2WSH, with addresses starting with bc1q and are longer than the one-key ones.

Spent on a multisig 2 of 3

Create the transactionThe coordinator (for example, Sparrow) sets up the transaction and generates a PSBT.
→
Signature 1Hardware Wallet signs it and returns the partially signed PSBT.
→
Signature 2A Hardware Wallet B signs. The quorum of 2 was reached.
→
TransmitsThe complete PSBT becomes a final transaction and goes to the network.
The third key doesn't even have to leave the safe. PSBT is the standard format for passing transactions between devices.

Note that the keys never meet. Each device signs alone and passes the file forward, by memory card, QR Code or cable. An attacker would have to compromise two separate devices, in different places, to steal.

Multisig on Bitcoin: How it works and how to build a 2 of 3 wallet
Image: Pexels (free license)

Common quorums and for whom they serve

QuorumTolerate loseThief needsTypical use
1 of 21 key1 keyJoint account for convenience; Does not increase theft security
2 of 2none2 keysLightning channels and agreements between two parties; risky as savings
2 of 31 key2 keysThe standard for personal or couple savings
3 of 52 keys3 keysCompanies, inheritances and treasuries with several responsible

The 2 of 3 has become a reference because it balances the two main risks. One key can stay at home, another in a safe or in a relative's house, and the third with a collaborative custody service or a second address. You lose one, still spend; Someone steals one, still doesn't take it.

Warning: A 2 out of 2 seems twice as safe, but losing any of the keys locks the funds forever. To store value, prefer a quorum with ease.

The backup that almost everyone forgets: the descriptor

This is the most important point of the guide. In a regular wallet, the 12 or 24 words recover everything. In a multisig, the words of a key not enough. To rebuild the wallet, the software needs to know all the extended public keys (XPubs) of the set, the quorum and the type of script. This information pack is the output descriptor (Output Descriptor), a standardized text that most wallets export as a file or QR code.

The recovery kit of a 2 of 3

Key Seed AStored in a location, along with a copy of the descriptor.
Key B SEEDIn another location, also with a copy of the descriptor.
Key c seedIn a third location, again with the descriptor.
Wallet descriptorIt contains only public keys: it does not allow you to spend, but reveals your balance to whoever has it.
With two seeds and the descriptor, the wallet is recoverable in any compatible software.
Tip: Keep a copy of the descriptor next to each seed. So any two backup boxes are enough to recover the wallet. The descriptor does not give access to the funds, but exposes its addresses, so treat it as private information.

Hardware and software to assemble your

A well-made multisig mix manufacturers. If you use three devices of the same brand, a defect or security flaw in that model affects the three keys. Combine different brands wallet hardware reduces that risk. See the options in our comparison of best hardware wallets and in the analysis of Coldcard, widely used in this type of arrangement.

  1. Choose the coordinatorA desktop software that builds the wallet and transactions, such as Sparrow. He doesn't keep private keys.
  2. Prepare three appliancesBoot each wallet hardware with a new seed and write each one separately.
  3. Export the xpubsIn the coordinator, import the extended public key of each appliance and set quorum 2 of 3.
  4. Save the descriptorExport the descriptor and check the first address on each device, on its screen.
  5. Take a full testSend a small amount, spend with two keys and simulate a recovery before depositing larger amounts.

To consult the blockchain without leaking your addresses to third-party servers, connect the coordinator to a node, as shown in How to run a bitcoin node.

How much does it cost to use multisig

Traditional multiSIG transactions are larger because they need to load multiple signatures and the script with all the public keys. According to the Bitcoin Optech tables, spending a P2WSH 2 out of 3 input occupies about 104.75 Vbytes, against 68.25 Vbytes of a common P2WPKH input. That means paying about 50% more fee per down payment. For long-term savings, with few movements, the difference is small. Calculate yours with network rate calculator.

Taproot, MuSig2 and the Multisig that seems common

Like Taproot, activated in 2021, and the Schnorr signatures, appeared cheaper and more discreet forms of multisig. BIP 327 specifies MuSig2: several participants combine their keys in a single public key and produce a common signature together. On blockchain, the result is indistinguishable from a single-key expense. The BIP itself highlights that MuSig2 is an N schema, that is, everyone needs to sign; It is not an M threshold scheme.

For quorums like 2 of 3 with Taproot, the way out is to combine MuSig2 with the Script Tree: the main path uses two aggregated keys and alternative paths are hidden in the sheets, only revealed if used. Threshold signature schemes, such as FROST, are searched to allow M of N with a single signature, but wallet support is still limited.

Pros

  • No single point of failure for loss or theft
  • Keys on different appliances and locations
  • Allows inheritance and shared control
  • Works with multi-brand hardware wallets

Cons

  • More complex backup: seeds and descriptor
  • Larger and a little more expensive transactions
  • Requires discipline to test recovery
  • Configuration errors can catch funds

Multisig and Inheritance

One of the most practical uses of MultiSIG is succession planning. In a configuration 2 of 3, the holder keeps two keys and a trusted family member, or a professional, keeps the third, with clear instructions. Alone, the family member cannot spend. If the holder dies, the third key plus one of the holder's keys, found according to the instructions, allow them to recover the funds. The golden rule is to document the process so that someone without technical knowledge can follow, without putting the seeds on the same paper.

How much do you know about wallet security?Take the quiz and discover the weaknesses of your self-custody.Start now

Multisig is not for everyone or for any value. For small amounts, a good well-kept single-key wallet solves it. When the saved value becomes something you wouldn't accept losing by an error, splitting the control between several keys is the most solid security improvement available on Bitcoin.

Review your security step by stepUse the crypto security checklist before mounting MultiSIG.Start now

Frequently asked questions

Is Multisig safer than an ordinary wallet?

Against loss and theft of a single key, yes. On a 2 of 3, losing a key doesn't lock the funds and stealing one is not enough. But the backup gets more complex and configuration errors can catch the money.

What happens if I lose a 2 of 3 key?

You still spend on the other two. The ideal is to use these two to move the funds to a new wallet, with three new keys, and restore the gap.

Are only seeds enough to recover a MultiSIG?

No. In addition to the seeds needed for the quorum, you need the wallet descriptor or the XPubs of all keys. Without it, recovering is very difficult.

Are multisig transactions more expensive?

The traditional ones, yes, because they carry several signatures. By Bitcoin Optech, a P2WSH 2 out of 3 has about 104.75 Vbytes against 68.25 Vbytes of a common P2WPKH input.

What is MuSig2?

It is a BIP 327 protocol in which several people combine keys in one and sign together. On blockchain it feels like a common expense. It is N of N, that is, all participants need to sign.

References

  1. Beep 11: M-OF-N Standard Transactions
  2. Beep 16: Pay to Script Hash
  3. Beep 327: MuSig2
  4. BIP 174: PSBT
  5. Bitcoin Optech: Transaction Size Calculator
  6. Bitcoin Optech: Scriptless MultiSignatures Topic
  • multisig
  • wallet 2 of 3
  • self-custody
  • wallet hardware
  • MuSig2
  • bitcoin

This content is informative and is not an investment recommendation. found an error? Write to contato@boletimbitcoin.com.

Read also

Start in crypto today

Open your free account, deposit with PIX and access Spot, Futures, Copy Trading and Trading Robots in one app.

  • Easy deposits
  • Copy trading
  • Grid and DCA bots
  • All-in-one app
Advertising. Crypto involves risk, invest responsibly.
Create free account