Recover a Nunchuk wallet with Sparrow

Article length
7 mins read
Published
Dec 24, 2022

Recover-Header@2x.png
 

Nunchuk was developed using open tools and standards. That means a wallet created in Nunchuk can be easily recovered elsewhere.

In this guide, we will walk you through how to recover a Nunchuk multisig wallet with Sparrow, a popular desktop Bitcoin wallet.

Prerequisites

  • The wallet configuration file
  • Enough seeds or master private keys to meet the signature requirement for a sweep. For example, for a 2-of-4 multisig wallet, you will need either 2 seeds, 2 master private keys, or 1 seed and 1 master private key. 

Important notes before you begin
(a) If you have a TAPSIGNER in your setup, you can learn how to extract its master private key here.

(b) Importing a key during wallet recovery requires knowing the key's BIP32 derivation path. Nunchuk defaults to using Native SegWit multisig wallets which typically use these paths:

  • For keys created in common hardware signing devices: m/48h/0h/0h/2h 
  • For keys created in Nunchuk, including the TAPSIGNER: m/48h/0h/0h

If you are unsure, you can always get the path information for your keys from the wallet configuration file.

(c) Both Nunchuk and Sparrow sort keys automatically. This means during recovery you can import keys in any order. For example, if you had created a multisig wallet by adding keys A —> B —> C —> D sequentially, during recovery you can import them as B —> D —> A —> C, or any other order, and it will still be able to reconstruct the same wallet.

(d) An alternative to importing seed phrases is to add the original signing devices that were initialized with those seed phrases to Sparrow (if you still have access to the devices). To do so, under Sparrow's wallet settings, select either “Connected Hardware Wallet” or “Airgapped Hardware Wallet”, depending on your device type.


Recovery overview

  1. Retrieve the wallet configuration file
  2. Create a new wallet in Sparrow
  3. Restore keys using seeds or master private keys
  4. Add the rest of the keys as XPUBs
  5. Sweep the wallet

Guide

Step 1

You can export your wallet's configuration at any time from inside the Nunchuk app. It is a good idea to back up the wallet configuration in another place besides Nunchuk, such as in a password-protected cloud storage, your personal drive or email.

Nunchuk supports multiple wallet configuration formats and natively uses BSMS, which is based on BIP129. For this guide however, we will use the COLDCARD format, which is compatible with Sparrow and is human-readable.

To get the configuration in the COLDCARD format, navigate to your wallet in Nunchuk, tap on “View wallet config”, then tap on the 3-dot menu (top right of the screen). Select “Export wallet to COLDCARD” and choose the file option.

You will be prompted to save a text file. Once downloaded, open the file using any text editor. The file should look similar to the one on the right of the image below. In this example, we will be recovering a 2-of-4 multisig wallet (a Honey Badger wallet).

Copy-of-BSMS@3x.png


Step 2
Once you have a copy of the wallet configuration file, proceed to download and install Sparrow Wallet on your computer.

Create a new wallet in Sparrow and name it “Recovered wallet”.Sparrow@3x.png
Enter-wallet-name@3x.png
 

Switch to Multi-Signature and adjust the M and N parameters on the Cosigners slider, so that they match your wallet configuration.Multi-signature@3x.png


Step 3
Now you can start restoring the keys one-by-one by using either the seeds, the master private keys, or the extended public keys (XPUBs).

To restore a key using a master private key: Navigate to Settings, under one of the unused Keystore tabs, click “New or Imported Software Wallet” —> “Master Private Key (BIP32)” —> “Enter Private Key”, then paste in the master private key and click “Import”.Use-24-words@3x.png

You will be prompted to enter the derivation path for the key. In this example, the first key we are importing is a TAPSIGNER, so its path is m/48h/0h/0h (if unsure, review the wallet configuration file).

m/48h/0h/0h can also be written as m/48’/0’/0’ (the characters h and are interchangeable), as shown in the image here.Words-BIP39@3x.png
 

Take note of the master fingerprint of the key. You can optionally change the key label. Key-1@3x.png
 

To restore a key using a seed phrase: Switch to an unused Keystore tab, click “New or Imported Software Wallet”. Under “Mnemonic Words (BIP39)”, choose either the 24-word or 12-word option, depending on the length of your seed phrase. Enter your seed phrase. If there was a passphrase, you must enter that as well. Then click “Create Keystore”.Mnemonic-words-BIP39@3x.png

Again you will be prompted to enter the derivation path for the key. In this example, the second key we are importing was created in COLDCARD, so its path is m/48h/0h/0h/2h (if unsure, review the wallet configuration file).Mnemonic-words-B939@3x.png
 

Also take note of the master fingerprint of the key.Key-2@3x.png
 

Step 4
Next, you will fill in the other keys in the wallet by putting in their extended public keys (XPUBs).

To get the XPUBs, open the wallet configuration file. Note the fingerprints of the keys you already imported. In this example, keys with fingerprints 7b71b9cb and 6a7bed37 (highlighted red) were already imported.Export-Nunchuk-1@3x.png
 

Now we will add the rest of the keys (highlighted green) as XPUBs in Sparrow.Export-Nunchuk-2@3x.png
 

Under another unused Keystore tab, select “xPub / Watch Only Wallet”.

Fill in the master fingerprint, derivation path and XPUB for one of the unassigned keys.Key-3@3x.png
 

Repeat the above to add all the unassigned keys.Key-4@3x.png
 

Once you have imported all the keys, confirm that you have recovered the correct wallet by navigating to the Transactions tab. You should be able to see your wallet history and balance.

If you don’t see your old transactions, it could be due to a number of reasons:

  • Your Sparrow server is offline. Change to a different server if you have connection issues.
  • One or more keys were imported incorrectly. Review the previous steps. Pay special attention to things like passphrases and derivation paths.Recover-wallet@3x.png
     

Step 5
Now that you've gotten the old wallet back, let’s create a transaction that sweeps the balance from this wallet. Navigate to the Send tab, fill in the address you want to withdraw bitcoins to, optionally adjust the fee settings, and click “Create Transaction”.Create-tx@3x.png
 

Sign and broadcast your transaction.

Congratulations, you have successfully recovered and swept a Nunchuk wallet using Sparrow!Sign-tx@3x.pngBroadcast-tx@3x.png

Share

More from us

Join our newsletter

Subscribe to get our latest news, updates and special offers
Newsletter

Download our app

App Store DownloadPlay Store Download
Mac DownloadWindows DownloadLinux Download