How to turn a 2fa wallet into a standard wallet via command line

8 replies 336 views
lynx_2021Member
Posts: 19 · Reputation: 176
#1Nov 22, 2021, 07:37 PM
Hey folks. I'm trying to get the seeds from two Bitcoin wallets (one standard seed and one 2fa seed) into two standard wallets using the command line: 1) Standard wallet: electrum daemon -d electrum o restore ? arguments: word1 word2 word3 word4 word5 word6 word7 word8 word9 word10 word11 word12 { "msg": "This wallet was restored offline. It may contain more addresses than displayed. Start a daemon and use load_wallet to sync its history.", "path": "/home/user/.electrum/wallets/default_wallet" } electrum load_wallet Once the wallet is loaded, I can use it just fine. So far, so good. 2) For the 2fa wallet: electrum daemon -d electrum o restore ? arguments: word1 word2 word3 word4 word5 word6 word7 word8 word9 word10 word11 word12 I get an error saying "Unexpected seed type '2fa'". I want to change this 2fa wallet into a standard wallet through the command line. I think there’s a way to modify the command in "electrum o restore ?" to disable the 2fa feature and convert it to a standard wallet. Any idea what command I should use? Thanks for your time and help. Cheers.
2 Reply Quote Share
BasedGasHero Member
Posts: 460 · Reputation: 2335
#2Nov 23, 2021, 01:54 AM
You can't convert a 2FA wallet to a standard wallet or vice versa because both are different seed types that Electrum recognizes with its version number. https://electrum.readthedocs.io/en/latest/seedphrase.html But you can restore the 2FA wallet and export the private keys from the loaded wallet then import them into a new standard wallet. As @hosseinimr93 pointed out, you can disable 2FA of your electrum but there is no way to convert multi-sig into single sig address type. 'Duly noted'
3 Reply Quote Share
w0lf404Hero Member
Posts: 801 · Reputation: 2381
#3Nov 25, 2021, 03:28 AM
No, you can't. Electrum 2FA wallet is a 2 of 3 multi-signature wallet and there are three private keys for each of addresses. There is no way to import your address with a single private key. To OP: If you want to disable 2FA, import the seed phrase of your 2FA wallet and choose to disable 2FA. Take note that you don't make your wallet a standard wallet with disabling 2FA and your wallet will be still a multi-signature wallet. There is no way to turn a multi-signature wallet to single-signature wallet.
4 Reply Quote Share
colddiamondHero Member
Posts: 623 · Reputation: 2467
#4Nov 25, 2021, 07:52 AM
You can't do it from the command line as far as I can see. You CAN do it from the GUI. https://electrum.readthedocs.io/en/latest/2fa.html Don't know if you can do the GUI, but if you can't check the android phone version of electrum. I know you can restore the 2fa from there I don't know if it still requires trusted coin. -Dave
2 Reply Quote Share
w0lf404Hero Member
Posts: 801 · Reputation: 2381
#5Nov 25, 2021, 01:06 PM
Two of master private keys and all three master public keys can be derived from 2FA seed phrase. Therefore, if you have access to your 2FA seed phrase, you have all the required keys for making transaction from your wallet and you don't rely on trustedcoin.
6 Reply Quote Share
BasedGasHero Member
Posts: 460 · Reputation: 2335
#6Nov 25, 2021, 03:09 PM
Hmm, thanks for correcting me.  That is why I always hesitate to reply regarding the technical questions cause I kind of mess up some of the time even though I am spending more and more time learning about technical aspects, I guess it's really not my cup of tea.
3 Reply Quote Share
humbleledgerLegendary
Posts: 1027 · Reputation: 6554
#7Nov 25, 2021, 03:31 PM
Now that you know you messed up, it's best to edit your post and strike through the incorrect part. Others may read it in the future. An easy reminder why you can't export a multisig key into a single key: a single key produces a different address format.
3 Reply Quote Share
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#8Nov 25, 2021, 04:03 PM
I think you meant to just disable 2fa so you wont have to use the authenticator app, not necessarily convert the wallet to standard since it's still a 2-of-3 MultiSig, 2fa enabled or not. If so, that's still not possible in the command line since the only options for restore command are: text (seed, master key, prvKeys or addresses), passphrase (extension), password, encrypt_file and wallet_path. Ref: github.com/spesmilo/electrum/blob/master/electrum/commands.py#L281 In an additional note, they also prevent 2fa when creating a wallet in the command line. e.g.: electrum --o create --seed_type "2fa" result: Unexpected seed type '2fa'
2 Reply Quote Share
lynx_2021Member
Posts: 19 · Reputation: 176
#9Nov 25, 2021, 06:21 PM
Hi. Exactly what he meant is what he says nc50lc. The idea is with the command line disable 2fa so you wont have to use the authenticator app. You are right that for the restoration command there is no possibility of 2FA deactivation in the command line as it happens with the GUI. I thought that when it could be done with the GUI that possibility would also exist with the command line. So clarified is that technical doubt and another thing that I have learned thanks to all of you. Thanks for your time and for your contributions. All the best.
1 Reply Quote Share

Related topics