Bitcoin Forum
May 02, 2024, 07:47:09 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [Tutorial] Passport-Sparrow-multisig wallet.  (Read 249 times)
satscraper (OP)
Hero Member
*****
Offline Offline

Activity: 728
Merit: 1340


Cashback 15%


View Profile
October 02, 2023, 05:48:52 PM
Last edit: October 04, 2023, 07:34:25 PM by satscraper
Merited by hugeblack (4), o_e_l_e_o (4), Husna QA (2), Cricktor (2), Lucius (1), DdmrDdmr (1), albert0bsd (1)
 #1

Over the past months I have been observing a steadily increasing interest among forum users in topics related to multisig wallets. My search for  relevant forum guides on creating such wallets yielded almost no results, which surprised me to some extent. Therefore, I have decided to address this situation by contributing detailed instructions  on creating a 2-of-2 multisig wallet which relies on  two cosigners: Passport 2 HW and  Sparrow software wallet.


Prerequisites: Passport 2/Passport Foundation HW  and installed Sparrow.



1) Open Sparrow and click on the 'New Wallet' option in the 'File' menu. In the ensuing subwindow enter a name for this wallet. I chose 'Multisig Wallet,' but feel free to pick any name you prefer:

Quote from: satscraper

Click “Create wallet”.

2)In the subsequent subwindow choose “Multi Signature” at  Policy Type (upper-left-corner-located) and use the upper-right slider to adjust the number of cosigners. In this example, the slider is set to the 2/2 position.

Quote from: satscraper

Choose”Keystore 1” and then click “New or Imported Software Wallet”.(This step instructs the Sparrow client to create the first cosigner, which will be Sparrow itself )

3) In the following subwindow utilize the drop-down menu located at the upper-right corner to select the number of BIP 39 mnemonic words. For this example 12 words are chosen. Click 'Generate New,' which will provide you with a set of words relevant to a BIP 39 compliant wallet:

Quote from: satscraper

(Don’t use words shown on above picture. They are just for example)

Write down those words, review your recorded list  once more, and then press 'Confirm Backup...'." and after the pop-up - “Re-enter words”.

4)Re-enter the recorded words in the corresponding fields of the next subwindow:


Quote from: satscraper

Entering the correct information again and pressing “Create Keystore” will result in the creation of a valid keystore that can be imported into your multisig wallet using “Import Keystore” button on the next subwidow :

Quote from: satscraper

5) Now proceed to create a keystore for your Passport 2 device. Click on the 'Keystore 2' tab, and then select “Airgapped Hardware Wallet “.

Quote from: satscraper

 In the new subwindow you will see a list of hardware wallets.

Quote from: satscraper

Locate 'Passport Multisig' in the list and click “Scan..” (I prefer QR codes, and from here on, I will refer exclusively to this method. However, if you prefer pairing via an SD card, click 'Import File..').

6) Now it's time to proceed to  Passport device.

Turn it on, enter the correct PIN (I will not use a password for the relevant account in these instructions, but you may use one), and locate “Manage Account.”

Quote from: satscraper

Choose  it by right button on device.

The next screen will present a list of options. Choose “Connect Wallet”, then locate ”Sparrow” on the following screen and press it using the device's right button.  

Quote from: satscraper

On the refreshed Passport screen, select “Multisig,” then on the next screen, click on “QR Code.” This prompts you to scan  into Sparrow the QR code displayed on the following screen.

Quote from: satscraper

Just do it (BTW, QR code is dynamic).


After Sparrow's  scanning is completed  the relevant information will appear in the Passport tab:

 
Quote from: satscraper

Press “Apply” button on this tab.

7) Proceed to the next step on the Passport wallet. It will prompt you to import the multisig configuration from Sparrow via QR code:

Quote from: satscraper

To do this, click on the “Passport” tab in Sparrow, then press the “Export” button. In the subsequent subwindow, click on the “Show...” button located next to the 'Passport Multisig' entry:

 
Quote from: satscraper

Scan the dynamic QR code into  Passport device. After scanning is complete, a message will appear on the Passport screen, asking for your permission to create a new multisig wallet:

Quote from: satscraper

Confirm creation.

After confirming, Passport will prompt you to verify that the wallet is connected correctly:

Quote from: satscraper

To do this you have to scan any receive address from your multisig wallet.

8.) Double-click on any receive address and provide the corresponding QR code to the Passport scanner. After scanning is complete, that address will appear on the Passport screen. Approve it if it is correct.

That's it! You now have a 2-of-2 multisig wallet in your arsenal. The above instructions can be easily adapted for different cosigner types and their numbers in an N-of-M multisig wallet.



Here's a brief guide on how to send funds from a multisig wallet, demonstrated using the wallet created with the above instructions.

To initiate a transaction, you need to sign it using two private keys belonging to different cosigners – Sparrow and Passport. After clicking 'Sign,' Sparrow will automatically handle the process, displaying a bar filled with blue to indicate that the first cosigner has successfully completed their part:

Quote from: satscraper
]

Next, click "Sign" a second time. Sparrow will generate a dynamic QR code for the multisig transaction. You need to scan this code with the Passport device's scanner. After scanning is complete, Passport will display the signed QR code for the multisig transaction. Input this code back into Sparrow by clicking "Scan QR" in the transaction window (see above picture). After a successful scan, you should see the following :

 
Quote from: satscraper

Finally, click the 'Broadcast Transaction' button to complete the process.







.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
1714679229
Hero Member
*
Offline Offline

Posts: 1714679229

View Profile Personal Message (Offline)

Ignore
1714679229
Reply with quote  #2

1714679229
Report to moderator
1714679229
Hero Member
*
Offline Offline

Posts: 1714679229

View Profile Personal Message (Offline)

Ignore
1714679229
Reply with quote  #2

1714679229
Report to moderator
Bitcoin addresses contain a checksum, so it is very unlikely that mistyping an address will cause you to lose money.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
satscraper (OP)
Hero Member
*****
Offline Offline

Activity: 728
Merit: 1340


Cashback 15%


View Profile
October 02, 2023, 05:49:12 PM
 #2

reserved

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
apogio
Sr. Member
****
Offline Offline

Activity: 434
Merit: 960



View Profile WWW
October 03, 2023, 04:42:53 PM
 #3

Very good tutorial, but shouldn't we encourage people to use better multisig set-ups?

As such, I would argue that:

1. 2-of-3 is better than 2-of-2 because it offers greater redundancy with the exact same security, since 2 cosigners are needed in both cases. It is also easier to back it up because it needs 3 backups (one cosigner needs one backup). In 2-of-2, you need 2 backups for each cosigner. Having one backup for each cosigner can be catastrophic. In general, I suggest multisig setups where the needed cosigners are less than the total amount of cosigners. The only exception I have seen working is for 2 friends of mine who are married and want to have a vault together where both need to sign. Each one of them is responsible for one cosigner only. So perhaps they have kept 2 backups of each cosigner or even more, I don't know. It depends on each one.

2. Why not both cosigners offline? Much better security. In fact, having one cosigner as a hot wallet is a bad practice. I wouldn't do that personally. A properly set-up single signature wallet that is airgapped and properly backed-up with additional strong passphrase offers relatively equal security to a multisig with one cosigner as hot wallet.

satscraper (OP)
Hero Member
*****
Offline Offline

Activity: 728
Merit: 1340


Cashback 15%


View Profile
October 03, 2023, 07:08:34 PM
Last edit: October 04, 2023, 10:45:34 AM by satscraper
 #4

Very good tutorial, but shouldn't we encourage people to use better multisig set-ups?

As such, I would argue that:

1. 2-of-3 is better than 2-of-2 because it offers greater redundancy with the exact same security, since 2 cosigners are needed in both cases. It is also easier to back it up because it needs 3 backups (one cosigner needs one backup). In 2-of-2, you need 2 backups for each cosigner. Having one backup for each cosigner can be catastrophic. In general, I suggest multisig setups where the needed cosigners are less than the total amount of cosigners. The only exception I have seen working is for 2 friends of mine who are married and want to have a vault together where both need to sign. Each one of them is responsible for one cosigner only. So perhaps they have kept 2 backups of each cosigner or even more, I don't know. It depends on each one.


Thanks for your response.

Opting for a 2-of-3 multisig scheme undoubtedly enhances sustainability. Nevertheless, introducing the third co-signer into the tutorial to explain this arrangement would result in additional entries (the number varying based on the type of additional co-signer), potentially elongating the tutorial unnecessarily.

In my view, the existing steps in the tutorial provide a comprehensive understanding of setting up a multisig wallet in any configuration. Therefore, if you lean towards a 2-of-3 multisig wallet, Sparrow offers an array of options across different wallet types to incorporate the third co-signer seamlessly.




A properly set-up single signature wallet that is airgapped and properly backed-up with additional strong passphrase offers relatively equal security to a multisig with one cosigner as hot wallet.

Nope, the next regular firmware update may potentially install a backdoor into “ properly set-up single signature wallet that is airgapped and properly backed-up with additional strong passphrase”.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
Yamane_Keto
Sr. Member
****
Offline Offline

Activity: 476
Merit: 486



View Profile WWW
October 04, 2023, 09:29:54 AM
 #5

You can add the multisig script type available in Sparrow. I noticed that you used P2WSH, but is P2SH supported and is it also possible to have P2TR (as far as I know, there is no open source wallet that supports multisig)
max co-signers are there? (N value)
Night mode makes reading the screen difficult.
Although Sparrow provides smoothness in adding more hardware wallets, Electrum offers a better multisig UI.
I think the explanation is good and can be useful for beginners, especially since 2-of-3 provides better options for those who want to store seeds.

.BEST.CHANGE..███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
satscraper (OP)
Hero Member
*****
Offline Offline

Activity: 728
Merit: 1340


Cashback 15%


View Profile
October 04, 2023, 10:43:46 AM
Last edit: October 04, 2023, 03:16:03 PM by satscraper
 #6

You can add the multisig script type available in Sparrow. I noticed that you used P2WSH, but is P2SH supported and is it also possible to have P2TR (as far as I know, there is no open source wallet that supports multisig)
max co-signers are there? (N value)
Night mode makes reading the screen difficult.
Although Sparrow provides smoothness in adding more hardware wallets, Electrum offers a better multisig UI.
I think the explanation is good and can be useful for beginners, especially since 2-of-3 provides better options for those who want to store seeds.

Sure you can select  any  script type that suites your needs better ,this is  an obvious thing which tutorial didn't  mention.  Tutorial  has the long-reading enough without adding this.

Max N = 20

I like night mode but one cannot account for tastes,  the same is  the case for Electrum  multisig UI. Electrum is not choice for me because of the lack  of pairing with the air-gapped wallets via QR.


.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
apogio
Sr. Member
****
Offline Offline

Activity: 434
Merit: 960



View Profile WWW
October 05, 2023, 05:40:42 PM
Merited by satscraper (1)
 #7


Thanks for your response.

Opting for a 2-of-3 multisig scheme undoubtedly enhances sustainability. Nevertheless, introducing the third co-signer into the tutorial to explain this arrangement would result in additional entries (the number varying based on the type of additional co-signer), potentially elongating the tutorial unnecessarily.

In my view, the existing steps in the tutorial provide a comprehensive understanding of setting up a multisig wallet in any configuration. Therefore, if you lean towards a 2-of-3 multisig wallet, Sparrow offers an array of options across different wallet types to incorporate the third co-signer seamlessly.


Ok, you are right. Thanks for the tutorial, as I said, it is very helpful and well written. In fact you include both the options to add a hot cosigner and a cold cosigner which is all someone needs.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!