Author

Topic: Generate Electrum keys without electrum (Read 222 times)

copper member
Activity: 2338
Merit: 4543
Join the world-leading crypto sportsbook NOW!
February 10, 2019, 02:10:54 PM
#5
Having to rely on a single app to get from my seed to my keys makes me a bit nervous. So it would be nice to have an alternative.

Ian Colemans BIP39 page is very good, however it doesn't work for electrum seeds.
https://iancoleman.io/bip39/

However it seems this page can be easily modified so it does work with electrum:
https://bitcointalksearch.org/topic/getting-the-private-keys-from-an-android-electrum-wallet-set-up-with-a-seed-2373020

However this doesn't work with Bech32 addresses - the addresses don't match the electrum wallet.

So does anybody now how to get the Bech32 addresses working?

Thanks.

A Trezor hardware wallet will generate segwit seed phrases that can be imported into Electrum.  They won't be Bech32, but they will be native seqwit (p2sh) addresses that start with 3.

If you're concern is security of the seed phrase, you can use an off-line computer to generate the phrases.  Once you've backed them up safely there's really no reason to worry about where they came from.
newbie
Activity: 7
Merit: 15
February 09, 2019, 05:42:01 AM
#4
Thanks, the derivation path thing worked Cheesy

It would be good do have a proper electrum version of the Ian Coleman page with a drop down box to choose between electrum and standard seeds. (I might have a go myself, but it is likely to take me months.)
HCP
legendary
Activity: 2086
Merit: 4361
February 08, 2019, 10:20:13 PM
#3
However this doesn't work with Bech32 addresses - the addresses don't match the electrum wallet.

So does anybody now how to get the Bech32 addresses working?
Yeah... there seems to be an extra "script type" value in the derivation path...

so instead of: m / purpose' / coin_type' / account' / change / address_index
it is now: m / purpose' / coin_type' / account' / script_type' / change / address_index

so the derivation path isn't m/84'/0'/0'/0/0... but m/84'/0'/0'/0'/0/0 Roll Eyes

To make the modified Ian Coleman page (ie. where you have already modified it to work with Electrum seeds) generate the matching bech32 addresses/privkeys... you need to:

1. Enter Electrum Seed
2. Click on "BIP141" tab
3. Set "BIP32 Derivation path" to: m/0'/0
4. Set "Script Semantics" to: "P2WPKH"

The addresses should display at the bottom... path should show as: m/0'/0/x




hero member
Activity: 1232
Merit: 738
Mixing reinvented for your privacy | chipmixer.com
February 08, 2019, 06:55:31 PM
#2
Ian Colemans BIP39 page is very good, however it doesn't work for electrum seeds.
https://iancoleman.io/bip39/
modifying a few lines of code in the iancoleman's page would make it work for electrum seed
you just need to replace a word of "mnemonic" to "electrum", and then disable its default checksum function

One of the key differences is that the BIP39 spec (and by extension IanColeman tool) uses a passphrase of "mnemonic" + yourpassphrase... whereas Electrum uses a passphrase of "electrum" + yourpassphrase.
newbie
Activity: 7
Merit: 15
February 08, 2019, 02:30:06 PM
#1
Having to rely on a single app to get from my seed to my keys makes me a bit nervous. So it would be nice to have an alternative.

Ian Colemans BIP39 page is very good, however it doesn't work for electrum seeds.
https://iancoleman.io/bip39/

However it seems this page can be easily modified so it does work with electrum:
https://bitcointalksearch.org/topic/getting-the-private-keys-from-an-android-electrum-wallet-set-up-with-a-seed-2373020

However this doesn't work with Bech32 addresses - the addresses don't match the electrum wallet.

So does anybody now how to get the Bech32 addresses working?

Thanks.
Jump to: