Understanding How Multi-Signature Wallets Work

18 replies 361 views
planktonHero Member
Posts: 363 · Reputation: 2049
#1Sep 1, 2024, 11:32 PM
I’m new to this multisig stuff. Watched a bunch of videos on setting it up with Electrum and hardware wallets. I get the basic steps, but I’m confused about something important. If I set up a "2 of 4" multisig, where two out of four need to sign a transaction, where does that rule even live? Is it on the blockchain?
6 Reply Quote Share
0x4lphaFull Member
Posts: 150 · Reputation: 509
#2Sep 2, 2024, 02:03 AM
Good question! The exchange or the receiver doesn’t need to know about the second signer until the transaction is actually broadcast. Only then does the second signer add their signature.
5 Reply Quote Share
tom2014Legendary
Posts: 23 · Reputation: 4721
#3Sep 4, 2024, 07:06 AM
So, what’s a multisig wallet anyway? It’s basically a wallet that requires multiple signatures to authorize a transaction. When you set it up, you decide how many co-signers are needed. That’s the threshold for broadcasting to the Bitcoin network.
1 Reply Quote Share
planktonHero Member
Posts: 363 · Reputation: 2049
#4Sep 4, 2024, 08:57 AM
I’m still not clear. In my "2 of 4" case, if I sign a transaction today and then a day later my friend adds their signature, how does my wallet know I already signed? Can it broadcast immediately?
4 Reply Quote Share
0x4lphaFull Member
Posts: 150 · Reputation: 509
#5Sep 4, 2024, 09:23 AM
When you sign, your wallet creates a partially signed bitcoin transaction (PSBT). You send that PSBT to the second signer, and then they sign it and broadcast it. That's how multisig works.
3 Reply Quote Share
planktonHero Member
Posts: 363 · Reputation: 2049
#6Sep 4, 2024, 12:02 PM
Okay, got it. But how do I actually send my PSBT to the other signer? And do I have to keep using Electrum for multisig transactions or can I use exchanges like Coinbase?
0 Reply Quote Share
0x4lphaFull Member
Posts: 150 · Reputation: 509
#7Sep 6, 2024, 08:23 AM
You can send it via QR code, file, or just copy and paste it. But you can’t use an exchange. You’ll need a non-custodial wallet that supports multisig. Electrum and Sparrow are good options.
3 Reply Quote Share
planktonHero Member
Posts: 363 · Reputation: 2049
#8Sep 6, 2024, 12:09 PM
Thanks for the help, everyone!
2 Reply Quote Share
laseryesSenior Member
Posts: 71 · Reputation: 1504
#9Sep 7, 2024, 04:33 AM
Just to simplify a bit, when you send to a multisig address, the sender sees just one address. But that address comes from hashing together multiple public keys and the multisig rules.
5 Reply Quote Share
dan51Senior Member
Posts: 9 · Reputation: 825
#10Sep 7, 2024, 06:33 AM
+1 for that explanation!
0 Reply Quote Share
CryptoBitNewbie
Posts: 55 · Reputation: 28
#11Sep 7, 2024, 07:28 AM
It’s like a joint account at a bank. You might have ten people involved, but only two or three signatures are needed for a valid transaction. Just be careful when using these wallets.
1 Reply Quote Share
0xApeNewbie
Posts: 40 · Reputation: 4
#12Sep 7, 2024, 01:34 PM
Exactly! Multisig can be great for security, but if you don’t know what you’re doing, you can easily lock yourself out. Remember, you don’t control the keys on an exchange.
0 Reply Quote Share
satoshi_vaultFull Member
Posts: 8 · Reputation: 687
#13Sep 7, 2024, 04:05 PM
You don’t need to use multisig with Electrum if you don’t want to. But if you do, everyone signing needs to be involved at the start.
2 Reply Quote Share
planktonHero Member
Posts: 363 · Reputation: 2049
#14Sep 7, 2024, 05:54 PM
Right! You can’t complete a transaction without the other signers. Their keys are what validate your transaction, not the exchange. Just you, your wallet, and the blockchain.
3 Reply Quote Share
gang2015Member
Posts: 215 · Reputation: 62
#15Sep 7, 2024, 08:50 PM
Thanks again! So if I sign a transaction in a two-out-of-four setup, I just send the PSBT file to the others, and they can sign it from their wallets? That’s what I was missing.
3 Reply Quote Share
Posts: 10 · Reputation: 3
#16Sep 9, 2024, 09:53 AM
Your wallet holds the rules for spending from the multisig address. When you spend, the script reveals the conditions, and it all has to match.
0 Reply Quote Share
Posts: 53 · Reputation: 37
#17Sep 11, 2024, 01:07 PM
It’s not stored on the blockchain, but in the address script. That script sets the required signers and includes their public keys. If you’re into coding, check out some resources on scripting.
3 Reply Quote Share
Posts: 1111 · Reputation: 35
#18Sep 12, 2024, 06:54 PM
Not quite. For a 2-of-4 setup, you need all four extended public keys to generate the wallet addresses. You can’t lose any of them! Only two are needed to sign, but all four are key for setting it up.
0 Reply Quote Share
Posts: 1111 · Reputation: 35
#19Sep 12, 2024, 11:17 PM
Exactly, that’s an important point! All signers need access to the extended public keys to set up the multisig wallet properly.
4 Reply Quote Share

Related topics