Bitcoin Forum

Bitcoin => Electrum => Topic started by: villabacho on January 05, 2017, 10:16:30 AM



Title: Electrum 2.7.13: Bitcoin sent from from multisig wallet without co-signing
Post by: villabacho on January 05, 2017, 10:16:30 AM
Hi,

I set up a 2-of-2 multisig wallet with Electrum on 2 devices. I then sent some BTC to this wallet's address, and it showed up on both devices, so everything looked fine.
Then I sent BTC from the first of my multisig wallet pair. After pressing the "Send" button on the "Send" tab, I would have expected that electrum asks me to co-sign it,
but instead the BTC was sent already (I confirmed that it arrived at the target address). The outgoing transaction is also seen by the second wallet of the multisig wallet pair.

I'm new to Electrum, so my question might be stupid, but at least a quick google / forum / stack exchange search didn't give me an answer.
I was pretty sure also that I did the multi-sig setup correctly (following the documentation in http://docs.electrum.org/en/latest/multisig.html),
and the electrum title bar also says "default_wallet [2of2]".

It looks like the multi-signature requirement is just not effective. Do I have to turn it on explicitly after having set up my multisig wallet pair?

Thanks,
villabacho





Title: Re: Electrum 2.7.13: Bitcoin sent from from multisig wallet without co-signing
Post by: Abdussamad on January 05, 2017, 11:58:03 AM
open up your wallet file in a text editor like notepad. Do you see two xprvs like this:

http://paste.ubuntu.com/23745557/



Title: Re: Electrum 2.7.13: Bitcoin sent from from multisig wallet without co-signing
Post by: villabacho on January 05, 2017, 01:04:59 PM
yes, there are two xprvs for x1/ and x2/, and they are different.
I have also "seed" entries, which you don't. Not sure if that matters.


Title: Re: Electrum 2.7.13: Bitcoin sent from from multisig wallet without co-signing
Post by: ThomasV on January 05, 2017, 01:13:30 PM
note: OP posted here https://github.com/spesmilo/electrum/issues/2098


Title: Re: Electrum 2.7.13: Bitcoin sent from from multisig wallet without co-signing
Post by: villabacho on January 05, 2017, 01:28:48 PM
note: OP posted here https://github.com/spesmilo/electrum/issues/2098

Yes, sorry for cross-posting, but I thought if it was a bug then github might be the better place to report this; if not, might be better to ask here. Anyway, the issue I opened at github was closed because of "no evidence of a bug".

So, if it's not a bug, then I'm probably doing something wrong. I just have no idea what...

Thanks for your help!



Title: Re: Electrum 2.7.13: Bitcoin sent from from multisig wallet without co-signing
Post by: villabacho on January 05, 2017, 05:13:38 PM
Ah! That's what happened:

In the "Add cosigner" dialog of wallet creation, I was presented three options:

  • Enter cosigner key
  • Enter cosigner seed
  • Cosign with hardware device

Because the cosigner wallet was on my Android smartphone, I preferred the seed rather than the public key because the seed would be more convenient to type by hand. I didn't want to transfer anything electronically (which of course, thinking about it, is not dangerous at all with the public key).

Naively, I thought that from the seed the cosigner's public key and ONLY the public key would be derived. I wasn't aware that also the cosigners private key would be stored and thus cosigning would then be done in the same wallet that initiates the transaction. In other words, more or less unconsciously I assumed it wouldn't be implemented that way because that would make multisig pointless (that was my idea at least).

Wow... it's really not for newbies  ;D ... and I still didn't leave the newbie state entirely behind me... at least I'm already smart enough to search for a better bitcoin storage than an exchange  ;D

As a follow-up question, what's the use case then for the "Enter cosigner seed" option?


Title: Re: Electrum 2.7.13: Bitcoin sent from from multisig wallet without co-signing
Post by: villabacho on January 05, 2017, 05:15:50 PM
BTW, thanks everyone for helping!


Title: Re: Electrum 2.7.13: Bitcoin sent from from multisig wallet without co-signing
Post by: Abdussamad on January 05, 2017, 09:49:19 PM
As a follow-up question, what's the use case then for the "Enter cosigner seed" option?

Say you have a 2 of 3 wallet with 1 key on your PC, one backup key you store offline and one on another device. If you lose your other device and you wish to recover your wallet you can enter the seed on your PC + the backup seed you've stored offline.