Bitcoin Forum
April 28, 2024, 10:40:47 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Restore wallet using BIP39  (Read 286 times)
scarich (OP)
Jr. Member
*
Offline Offline

Activity: 36
Merit: 5


View Profile
February 19, 2019, 01:00:18 PM
Merited by LoyceV (1)
 #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!
1714300847
Hero Member
*
Offline Offline

Posts: 1714300847

View Profile Personal Message (Offline)

Ignore
1714300847
Reply with quote  #2

1714300847
Report to moderator
1714300847
Hero Member
*
Offline Offline

Posts: 1714300847

View Profile Personal Message (Offline)

Ignore
1714300847
Reply with quote  #2

1714300847
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Rath_
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



View Profile
February 19, 2019, 01:42:54 PM
 #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.
nc50lc
Legendary
*
Offline Offline

Activity: 2394
Merit: 5543


Self-proclaimed Genius


View Profile
February 19, 2019, 01:48:31 PM
 #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.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
scarich (OP)
Jr. Member
*
Offline Offline

Activity: 36
Merit: 5


View Profile
February 19, 2019, 02:14:30 PM
 #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.
Rath_
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



View Profile
February 19, 2019, 03:31:05 PM
 #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.
BitMaxz
Legendary
*
Offline Offline

Activity: 3234
Merit: 2943


Block halving is coming.


View Profile WWW
February 19, 2019, 06: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

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
scarich (OP)
Jr. Member
*
Offline Offline

Activity: 36
Merit: 5


View Profile
February 19, 2019, 08:32:50 PM
 #7

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

Activity: 1876
Merit: 3131



View Profile
February 19, 2019, 09: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.
nc50lc
Legendary
*
Offline Offline

Activity: 2394
Merit: 5543


Self-proclaimed Genius


View Profile
February 20, 2019, 01:53:18 AM
 #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.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
pooya87
Legendary
*
Offline Offline

Activity: 3430
Merit: 10505



View Profile
February 20, 2019, 04:21:37 AM
 #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.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
February 20, 2019, 08: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://bitcointalk.org/index.php?topic=2373020.msg24316954#msg24316954

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

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
nc50lc
Legendary
*
Offline Offline

Activity: 2394
Merit: 5543


Self-proclaimed Genius


View Profile
February 21, 2019, 03:13:03 AM
 #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.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
pooya87
Legendary
*
Offline Offline

Activity: 3430
Merit: 10505



View Profile
February 21, 2019, 04:10:07 AM
 #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. 

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
February 21, 2019, 09:06:38 PM
Last edit: February 21, 2019, 10:21:21 PM by HCP
Merited by o_e_l_e_o (4), nc50lc (1)
 #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.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!