<p>Ben Kaufman answered this on <a href="https://twitter.com/_benkaufman/status/1344686741513449474?s=20" rel="noreferrer">Twitter</a>.</p>
<p>The main caveat in a multisig wallet is that, while you need only a threshold of devices (ie. 2 of 3, 3 of 5, etc.) to sign a transaction, losing access to even a single device could potentially prevent you from being able to spend the funds - if you don't back up properly!</p>
<p>The reason is that (usually) in order to make a Bitcoin transaction, it is not enough to be able to sign it, but you also need to provide the &quot;terms for spending&quot;, that is, the Script (code) that is used to lock the coins.</p>
<p>That's because the full script is usually not stored directly on the blockchain, but only as a hash (a unique identifier of it). In a single key wallet, this is trivial.</p>
<p>The script is composed of the public key of your wallet and a few standard commands - and satisfying it requires the signature for that key, so both the script and signature can be constructed by having access to that one private key.Then on spending, you need to provide both the original script code which matches that hash, and satisfy any condition that the script may include.</p>
<p>With a multisig, this is not the case. The script for a multisig contains the list of public keys of all possible cosigners - which means it can be constructed only by knowing the public keys of ALL devices in the multisig, not just of the devices you are signing with.</p>
<p>To demonstrate, let's assume a 2 of 3 multisig. When you want to get an address of your multisig, your wallet software is taking the public keys of all 3 cosigners, lists them in a standard way inside a script, hashes it, then with this hash constructs the address.</p>
<p>When receiving bitcoin to that address, there is a &quot;commitment&quot; on the blockchain for all 3 public keys, out of which 2 signatures are needed. But the public keys themselves are not listed yet on the blockchain - you must provide them too when spending from the address.</p>
<p>Now assuming you have lost access to one private key (a device and its mnemonic backup), you won't be able to tell its public key anymore - so you won't be able to reconstruct the script of the address. So even though you have enough signatures, you won't be able to access funds.</p>
<p>The solution - which is the extra step of a multisig backup - is to also keep a backup of the list of public keys (xpubs) of all cosigners, from which you will be able to recreate the script.</p>
<p>Since this list of public keys does not contain signing (private) keys, there is no risk of losing funds even if an attacker manages to access it, but this would be a privacy concern since the attacker will then be able to see the balance on the multisig wallet.</p>
<p>That's why it is not recommended to leave this file on some cloud backup or some other insecure option.</p>
<p>It's recommended that you keep it with each one of the cosigners/ seed backups so that you can recover regardless of the combination of signers you eventually use.</p>
<p>Besides the list of public keys, it is also necessary to know the script type used (whatever native SegWit, nested SegWit, or legacy), and the threshold chosen in order to construct the multisig script. These are possible to know by guessing (brute force), but better keep it too.</p>
<p>The last piece which you should include is the derivation paths used for each device. Each derivation path tells your wallet how to turn each master public key, into a different individual &quot;disposable&quot; public key used to generate every new address.</p>
<p>This data of derivation paths is standardized so that all wallets should use the same derivation path by default, but it is best to keep that around too especially if you use a unique one for some reason.</p>
<p>This might sound like a lot of components, but to simplify usage, there’s a standard for storing and recovering such information, which is called Output Descriptors.</p>
<p>Just as an example of what the final backup might look like, here are a few pics of a PDF backup generated from Specter Wallet.</p>
<p><a href="https://i.sstatic.net/g5qIH.png" rel="noreferrer"><img src="https://i.sstatic.net/g5qIH.png" alt="specter backup 1" /></a></p>
<p><a href="https://i.sstatic.net/RW2te.png" rel="noreferrer"><img src="https://i.sstatic.net/RW2te.png" alt="specter backup 2" /></a></p>
<p><a href="https://i.sstatic.net/y7rmU.jpg" rel="noreferrer"><img src="https://i.sstatic.net/y7rmU.jpg" alt="specter backup 3" /></a></p>
<p>This contains the individual devices keys list, as well as everything in an output descriptor format (and a bit of extra data like wallet name etc.)</p>
<p>You could save this by simply printing the PDF, storing it on an SD card, or just keep it encrypted on a cloud backup. What you need to remember is:</p>
<ol>
<li>You need this information to recover the wallet.</li>
<li>Anyone with access to this information can see your wallet history.</li>
</ol>
<p>So to simply sum it up, the additional piece you should backup when using a multisig wallet is the output descriptor - a list of the public keys of the cosigners with some data on the wallet.</p>
<p>This information is possible to derive only with access to all devices in your multisig and is necessary to spend from it.
So to remove the single point of failure of losing access to one cosigner, you should keep this backup along with each of your devices.</p>

CC BY-SA 4.0
2020-12-31T18:27:11.110Z
2020-12-31T18:27:11.110Z
Michael Folkson
<p>In a multisig wallet setup what needs to be backed up and why?</p>

<wallet-recovery><backup><multi-signature>
In a multisig wallet setup what needs to be backed up and why?
Michael Folkson
# In a multisig wallet setup what needs to be backed up and why?

(Asked by: username_0 on 2020-12-31)

In a multisig wallet setup what needs to be backed up and why?

**Tags:** wallet-recovery, backup, multi-signature


---

## 1 answers

### Answer by username_0 on 2020-12-31. Score: 14 | Accepted answer

Ben Kaufman answered this on [Twitter](https://twitter.com/_benkaufman/status/1344686741513449474?s=20).

The main caveat in a multisig wallet is that, while you need only a threshold of devices (ie. 2 of 3, 3 of 5, etc.) to sign a transaction, losing access to even a single device could potentially prevent you from being able to spend the funds - if you don't back up properly!

The reason is that (usually) in order to make a Bitcoin transaction, it is not enough to be able to sign it, but you also need to provide the "terms for spending", that is, the Script (code) that is used to lock the coins.

That's because the full script is usually not stored directly on the blockchain, but only as a hash (a unique identifier of it). In a single key wallet, this is trivial.

The script is composed of the public key of your wallet and a few standard commands - and satisfying it requires the signature for that key, so both the script and signature can be constructed by having access to that one private key.Then on spending, you need to provide both the original script code which matches that hash, and satisfy any condition that the script may include.

With a multisig, this is not the case. The script for a multisig contains the list of public keys of all possible cosigners - which means it can be constructed only by knowing the public keys of ALL devices in the multisig, not just of the devices you are signing with.

To demonstrate, let's assume a 2 of 3 multisig. When you want to get an address of your multisig, your wallet software is taking the public keys of all 3 cosigners, lists them in a standard way inside a script, hashes it, then with this hash constructs the address.

When receiving bitcoin to that address, there is a "commitment" on the blockchain for all 3 public keys, out of which 2 signatures are needed. But the public keys themselves are not listed yet on the blockchain - you must provide them too when spending from the address.

Now assuming you have lost access to one private key (a device and its mnemonic backup), you won't be able to tell its public key anymore - so you won't be able to reconstruct the script of the address. So even though you have enough signatures, you won't be able to access funds.

The solution - which is the extra step of a multisig backup - is to also keep a backup of the list of public keys (xpubs) of all cosigners, from which you will be able to recreate the script.

Since this list of public keys does not contain signing (private) keys, there is no risk of losing funds even if an attacker manages to access it, but this would be a privacy concern since the attacker will then be able to see the balance on the multisig wallet.

That's why it is not recommended to leave this file on some cloud backup or some other insecure option.

It's recommended that you keep it with each one of the cosigners/ seed backups so that you can recover regardless of the combination of signers you eventually use.

Besides the list of public keys, it is also necessary to know the script type used (whatever native SegWit, nested SegWit, or legacy), and the threshold chosen in order to construct the multisig script. These are possible to know by guessing (brute force), but better keep it too.

The last piece which you should include is the derivation paths used for each device. Each derivation path tells your wallet how to turn each master public key, into a different individual "disposable" public key used to generate every new address.

This data of derivation paths is standardized so that all wallets should use the same derivation path by default, but it is best to keep that around too especially if you use a unique one for some reason.

This might sound like a lot of components, but to simplify usage, there’s a standard for storing and recovering such information, which is called Output Descriptors.

Just as an example of what the final backup might look like, here are a few pics of a PDF backup generated from Specter Wallet.

[![specter backup 1](https://i.sstatic.net/g5qIH.png)](https://i.sstatic.net/g5qIH.png)

[![specter backup 2](https://i.sstatic.net/RW2te.png)](https://i.sstatic.net/RW2te.png)

[![specter backup 3](https://i.sstatic.net/y7rmU.jpg)](https://i.sstatic.net/y7rmU.jpg)

This contains the individual devices keys list, as well as everything in an output descriptor format (and a bit of extra data like wallet name etc.)

You could save this by simply printing the PDF, storing it on an SD card, or just keep it encrypted on a cloud backup. What you need to remember is:

1. You need this information to recover the wallet.
2. Anyone with access to this information can see your wallet history.

So to simply sum it up, the additional piece you should backup when using a multisig wallet is the output descriptor - a list of the public keys of the cosigners with some data on the wallet.

This information is possible to derive only with access to all devices in your multisig and is necessary to spend from it.
So to remove the single point of failure of losing access to one cosigner, you should keep this backup along with each of your devices.


---

