Bitcoin Forum

Bitcoin => Electrum => Topic started by: jza on September 23, 2015, 10:45:40 AM



Title: Importing a multi-signature account into electrum
Post by: jza on September 23, 2015, 10:45:40 AM
I generate a multi-signature account but I cant seem to get it to work with electrum. I have my account and the private/public keys on a text file, and I want to insert it into my wallet. The IRC room told me Electrum wouldnt let me do much until I generate a wallet first. But once running I couldnt tell how to import my account.

Please let me know what are the steps to get a multi-sig account (or any other account) to work with electrum.

Regards.


Title: Re: Importing a multi-signature account into electrum
Post by: Abdussamad on September 27, 2015, 05:54:08 PM
Use file > new/restore to create a new wallet. Choose to restore and choose multisig as the wallet type. Then just paste in the extended private key of your wallet and the extended public keys of the other participants.


Title: Re: Importing a multi-signature account into electrum
Post by: jza on September 27, 2015, 06:07:42 PM
Electrum crash after this, it gives me the following traceback on the console:
Code:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/electrum_gui/qt/main_window.py", line 380, in new_wallet
    wallet = wizard.run(action, wallet_type)
  File "/usr/lib/python2.7/site-packages/electrum_gui/qt/installwizard.py", line 441, in run
    wallet = self.restore(wallet_type)
  File "/usr/lib/python2.7/site-packages/electrum_gui/qt/installwizard.py", line 546, in restore
    wallet = Wallet.from_multisig(key_list, password, self.storage, t)
  File "/usr/lib/python2.7/site-packages/electrum/wallet.py", line 2053, in from_multisig
    assert klass.is_seed(text) or klass.is_xprv(text) or klass.is_xpub(text)
AssertionError
Traceback (most recent call last):
  File "/usr/bin/electrum", line 422, in <module>
    args.func(config)
  File "/usr/bin/electrum", line 126, in run_gui
    gui.main(url)
  File "/usr/lib/python2.7/site-packages/electrum_gui/qt/__init__.py", line 250, in main
    w.close_wallet()
  File "/usr/lib/python2.7/site-packages/electrum_gui/qt/main_window.py", line 222, in close_wallet
    self.wallet.stop_threads()
  File "/usr/lib/python2.7/site-packages/electrum/wallet.py", line 1122, in stop_threads
    self.network.jobs.remove(self.synchronizer.main_loop)
AttributeError: 'NoneType' object has no attribute 'main_loop'

Also when you say extended masterpassword do you mean the Private key like the 52 character key or the public key, the 66 character key.


Title: Re: Importing a multi-signature account into electrum
Post by: AussieHash on September 28, 2015, 08:41:41 AM
Use file > new/restore to create a new wallet. Choose to restore and choose multisig as the wallet type. Then just paste in the extended private key of your wallet and the extended public keys of the other participants.

Is it possible for all participants to be hardware wallets ? In which case electrum won't have any xpriv.


Title: Re: Importing a multi-signature account into electrum
Post by: Abdussamad on September 28, 2015, 07:54:49 PM
Also when you say extended masterpassword do you mean the Private key like the 52 character key or the public key, the 66 character key.

I didn't say extended master password. I said your extended private key and the extended public keys of the other participants in this multisig wallet. You can see examples of extended keys here (https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki#Test_Vectors). xprv... = extended private key and xpub... = extended public key.



Title: Re: Importing a multi-signature account into electrum
Post by: AussieHash on September 28, 2015, 09:47:21 PM
Thanks @nerioseole

What I would like to try is this (https://bitcointalk.org/index.php?topic=1052671.msg11306712#msg11306712), which is useless in Armory as it doesn't import compressed keys.  Will see if electrum can be a failsafe for Coinkite + Ledger multisig.