Author

Topic: Restore wallet using BIP39 (Read 304 times)

HCP
legendary
Activity: 2086
Merit: 4361
February 21, 2019, 04:06:38 PM
#14
Do you have an already modified offline files that can be downloaded? Or just a fork of https://github.com/iancoleman/bip39 with the edited code?
Because newbies and some Electrum users will find it useful at times like this; manually editing the code themselves is much of a hassle or out of their expertise (though HTML can be edited using notepad and pretty much basic, some may find it hard).

You're a trusted member and if it is hosted in Github and a fork of the original, most members will trust it.
Actually I do have an offline version hosted on Github... it has been there for a while: https://github.com/HardCorePawn/electrumBIP39 But it was VERY old (only included BIP44 and BIP32 tabs! Shocked), So I have just updated it... Wink

Unfortunately, I can't simply fork the Ian Coleman repo and modify it, as Ian removed the standalone.html file from source control (to save space as far as I can tell) Undecided So, I did a "save as" on the current Ian Coleman page, made the two edits that I listed in the other thread linked above and then uploaded the file to GitHub.

As always, USE AT YOUR OWN RISK!

NOTE: Instructions have been updated to include the subtle differences for SegWit address derivation.
legendary
Activity: 3472
Merit: 10611
February 20, 2019, 11:10:07 PM
#13
Do you have an already modified offline files that can be downloaded? Or just a fork of https://github.com/iancoleman/bip39 with the edited code?
Because newbies and some Electrum users will find it useful at times like this; manually editing the code themselves is much of a hassle or out of their expertise (though HTML can be edited using notepad and pretty much basic, some may find it hard).

You're a trusted member and if it is hosted in Github and a fork of the original, most members will trust it.

+ it is never a good idea to mess around with things you have no experience in and don't understand. it is not just about capability of editing things, it is about understanding what you are doing. so i'd say a newbie trying to edit code even if they follow some walk-through is never going to end well. 
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
February 20, 2019, 10:13:03 PM
#12
Do you have an already modified offline files that can be downloaded? Or just a fork of https://github.com/iancoleman/bip39 with the edited code?
Because newbies and some Electrum users will find it useful at times like this; manually editing the code themselves is much of a hassle or out of their expertise (though HTML can be edited using notepad and pretty much basic, some may find it hard).

You're a trusted member and if it is hosted in Github and a fork of the original, most members will trust it.
HCP
legendary
Activity: 2086
Merit: 4361
February 20, 2019, 03:26:00 PM
#11
You can modify the Ian Coleman webpage to work with Electrum fairly easily... it is open source. You just need to right-click on the page and "save as" to download the .html, open it with a text editor and make 2 minor edits.

Refer to my post here: https://bitcointalksearch.org/topic/m.24316954

NOTES:
- search for self.check and self.toSeed to find the two functions that need to be edited
- The first edit removes the error checking from the "BIP39 mnemonic" field, so it pays to triple check you've typed the words correctly.
- The second edit changes the "passphrase" section so that it uses the default Electrum passphrase as opposed to the default BIP39 passphrase
legendary
Activity: 3472
Merit: 10611
February 19, 2019, 11:21:37 PM
#10
BitCryptex, nc50lc thanks a lot! I got it now. So I think it would be better to generate seed not in Electrum, but in other BIP39 services and then use Electrum.

no it won't be better. Electrum is an open source software, in case some day in the future you couldn't run Electrum anymore and needed to convert your seed into an extended private key (xprv) to import in another wallet, it would be so easy to do so since the method is already known.
not to mention that what Electrum does under the hood is safe but what you do yourself with another tool may be considered unsafe because you may not be aware of what you are doing exactly.

BitMaxz, BitCryptex thanks for the advises! I'll do this way. Which standart will you advise BIP32 or BIP44?

BIP44 is not a different standard. it is a suggestion for the way you can use the "path" in BIP32 so if anything it is like an extension to BIP32. so is BIP39 which is a way to store your BIP32 entropy in form of a seed phrase. at the end of the day you are still using BIP32.
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
February 19, 2019, 08:53:18 PM
#9
Which standart will you advise BIP32 or BIP44?
If your Electrum was already funded, you can still use the Master Private key to restore it to any wallet that accepts xprv/zprv keys.
The SEED isn't standard but the master keys based from it are.
legendary
Activity: 1876
Merit: 3132
February 19, 2019, 04:00:12 PM
#8
I'll do this way. Which standart will you advise BIP32 or BIP44?

I would choose BIP44 since it allows to easily generate multiple accounts. This website provides BIP32 Derivation Path which you will need while importing your seed or private key to Electrum. It's much easier to maintain multiple accounts than play around with coin control which many people don't know have to perform correctly.
jr. member
Activity: 36
Merit: 5
February 19, 2019, 03:32:50 PM
#7
BitMaxz, BitCryptex thanks for the advises! I'll do this way. Which standart will you advise BIP32 or BIP44?
legendary
Activity: 3374
Merit: 3095
BTC price road to $80k
February 19, 2019, 01:25:00 PM
#6
You can use the website you linked earlier, but If I were you I would generate the seed while being offline. Save that page as a file and run it locally. It would be great if you could do it on a different computer which is certainly not infected by any malware.

Just make sure that you always do this on offline mode for the safety purposes of your seed using the bip39 tool by iancoleman.

If you want to generate a BIP39 seed offline you can download the https://iancoleman.io/bip39/ page and then turn off your internet and generate your seed or you can use this open-source code from here https://github.com/iancoleman/bip39
legendary
Activity: 1876
Merit: 3132
February 19, 2019, 10:31:05 AM
#5
I got it now. So I think it would be better to generate seed not in Electrum, but in other BIP39 services and then use Electrum.

You can use the website you linked earlier, but If I were you I would generate the seed while being offline. Save that page as a file and run it locally. It would be great if you could do it on a different computer which is certainly not infected by any malware.
jr. member
Activity: 36
Merit: 5
February 19, 2019, 09:14:30 AM
#4
BitCryptex, nc50lc thanks a lot! I got it now. So I think it would be better to generate seed not in Electrum, but in other BIP39 services and then use Electrum.
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
February 19, 2019, 08:48:31 AM
#3
1. Why I cannot restore my wallet and private keys, using https://iancoleman.io/bip39/? I generated a seed-phrase in Electrum and then I put it into "BIP39 Mnemonic" field. The service shows "Invalid mnemonic".
You can't because Electrum generates non-standard Mnemonic SEED and it will not work with almost all BIP39 tools or other Clients.

Quote from: scarich
2. How can I see my private master key (xprv) in Electrum?
Click "View", Select "Show Console"; Console Tab should appear.
In the Console Tab, type: wallet.keystore.get_master_private_key('ENTER-YOUR-PASSWORD') Then press Enter.
Take note: do not remove the ('   ') in the password field and close immediately after copying the master private key.
legendary
Activity: 1876
Merit: 3132
February 19, 2019, 08:42:54 AM
#2
Electrum supports importing BIP39 seeds, but it generates them differently and that's why any Electrum seed is incompatible with other wallets. You can easily export your private key by selecting Wallet -> Private keys -> Export. Also, try to avoid typing in your seed online. It might lead to loss of funds if your computer is infected. There were a few malicious online private key generators in the past.
jr. member
Activity: 36
Merit: 5
February 19, 2019, 08:00:18 AM
#1
Hello! Could someone clarify, please, the following questions:
1. Why I cannot restore my wallet and private keys, using https://iancoleman.io/bip39/? I generated a seed-phrase in Electrum and then I put it into "BIP39 Mnemonic" field. The service shows "Invalid mnemonic".
2. How can I see my private master key (xprv) in Electrum?
Thanks!
Jump to: