iancoleman / bip39

A web tool for converting BIP39 mnemonic codes
https://iancoleman.io/bip39/
MIT License
3.42k stars 1.42k forks source link

Electrum seed gives invalid mnemonic error #448

Closed Kyzcreig closed 3 years ago

Kyzcreig commented 3 years ago

When I make a new Segwit (bech32) wallet in Electrum the seeds it generates are not considered valid. Is that expected behavior?

Screenshot: image image

Seed: angry couple quit penalty source six all same tattoo squeeze mean today

jsarenik commented 3 years ago

Yes, that is known. Electrum uses its own way to produce a seed which contains some extra information. Will link to documentation when I find it.

jsarenik commented 3 years ago

https://electrum.readthedocs.io/en/latest/seedphrase.html says:

Starting with version 2.0, Electrum seed phrases include a version number, whose purpose is to indicate which derivation should be followed in order to derive private keys and addresses.

jsarenik commented 3 years ago

When you click Options button (in the screenshot you posted earlier) and check BIP39 seed then you can paste the seed generated by https://iancoleman.io/bip39/

Kyzcreig commented 3 years ago

I see. Thank you.

1) Are there any plans to make this tool compatible with Electrum's seed format? What would that take? 2) I suppose I can generate a BIP39 seed and then import this into Electrum and it will work as desired, is that right?

Kyzcreig commented 3 years ago

2.1. Won't that be insecure though, to use a seed generated from this tool? Is there a more secure way to generate a BIP39 seed offline?

jsarenik commented 3 years ago
  1. I suppose I can generate a BIP39 seed and then import this into Electrum and it will work as desired, is that right?

Yes.

jsarenik commented 3 years ago

2.1. Won't that be insecure though, to use a seed generated from this tool? Is there a more secure way to generate a BIP39 seed offline?

This tool can be used offline.

iancoleman commented 3 years ago

Thanks for your help with this @jsarenik

Kyzcreig commented 3 years ago

Thank you. I have one last question, how random is the mnemonic generator - how many possibilities can be generated - more specifically how feasible is it to brute force my generated seed from this tool?

iancoleman commented 3 years ago

One of many answers to this: https://old.reddit.com/r/Bitcoin/comments/jdnuvy/what_is_to_stop_some_hacker_cranking_out_24_word/

In relation to the specific implementation in this tool, have a look at https://iancoleman.io/bip39/#entropy-notes

It's not feasible to brute force mnemonics >12 words

Kyzcreig commented 3 years ago

This answers my question exactly. Thank you so much.

marek22k commented 2 years ago

How can I convert a electrum seed to a "normal" seed?

cryptopivot commented 2 years ago

Electrum seed is a "normal seed". However, Electrum standard wallet uses a different derivation path than most other hd wallets today.

I think what you are confused with is derivation paths, as an example m/49'/0'/0'/