Bitcoin Forum

Bitcoin => Electrum => Topic started by: tmp1 on September 03, 2017, 02:50:25 PM



Title: 2 of 2 multi signature with electeum
Post by: tmp1 on September 03, 2017, 02:50:25 PM
Hello!
Want to clarify. If I want to create 2 of 2 multisignature address with bitcoin core, I have to use 2 private keys. In case with electrum I created 2 of 2 but the after export private keys, each of addresses has only one private key. Could you clarify tis please.


Title: Re: 2 of 2 multi signature with electeum
Post by: Abdussamad on September 04, 2017, 12:52:47 PM
yeah that's a bug. it only exports one of the two keys.


Title: Re: 2 of 2 multi signature with electeum
Post by: tmp1 on September 06, 2017, 10:56:52 AM
Any idea how to export second key ?


Title: Re: 2 of 2 multi signature with electeum
Post by: HCP on September 06, 2017, 11:54:36 AM
Can I ask why you're creating a 2of2 MultiSig and putting both private keys in one copy of Electrum? That seems a bit pointless... it offers NO extra security, and just makes things a lot more complicated if you need to export your keys.

Generally, you create a MultiSig with your private key... and the PUBLIC key(s) of the co-signer(s)... why did you create it with 2 private keys?


Title: Re: 2 of 2 multi signature with electeum
Post by: Abdussamad on September 06, 2017, 01:05:58 PM
Good point HCP


Title: Re: 2 of 2 multi signature with electeum
Post by: tmp1 on September 07, 2017, 06:42:04 AM
Can I ask why you're creating a 2of2 MultiSig and putting both private keys in one copy of Electrum? That seems a bit pointless... it offers NO extra security, and just makes things a lot more complicated if you need to export your keys.

Generally, you create a MultiSig with your private key... and the PUBLIC key(s) of the co-signer(s)... why did you create it with 2 private keys?

I am testing it, and trying to find difference with bitcoin core. Next, for example, I want to create 2 of 2 on the different devices. Finally I have 2 private multisignature keys  and want to "sweep" it into electrum, is it possible with electrum?


Title: Re: 2 of 2 multi signature with electeum
Post by: HCP on September 07, 2017, 08:15:50 AM
You can only import or sweep single private keys. So you can't sweep 2 private keys (that were used in a 2of2 MultiSig) into Electrum and expect that the contents of the MultiSig address will be sent to Electrum. It will tell you there are no inputs found, as it will attempt to sweep the contents of each key/address separately... not the combined MultiSig Address.

privKey1 = Address1 = 0 BTC
privKey2 = Address2 = 0 BTC
privKey1+privKey2 = MultiSigAddress1 = 1 BTC

If you sweep privKey1, you'll get 0 BTC
If you sweep privKey2, you'll get 0 BTC
You cannot sweep "privKey1+privKey2" or MultiSigAddress1... you'd have to recreate the MultiSig in Electrum using privKey1 and privKey2... which should recreate MultiSigAddress1... you could then send the 1BTC where you wanted in a normal transaction.

Alternatively, if the idea was to be able to recover without the wallet, maybe you could do it manually by creating a transaction (maybe using https://coinb.in) using the appropriate redeem script, and the 2 private keys to sign the transaction. Put in an appropriate output address etc and broadcast the transaction...