gurnec / btcrecover

An open source Bitcoin wallet password and seed recovery tool designed for the case where you already know most of your password/seed, but need assistance in trying different possible combinations.
GNU General Public License v2.0
1.23k stars 657 forks source link

Ledger Nano S + BIP39 passphrase using Electrum Native Segwit #340

Open svrnhdl opened 4 years ago

svrnhdl commented 4 years ago

Hi, Here is my issue: I have a 24 word seed that is perfectly fine. I have a Leger Nano S with a BIP39 passphrase that apparently had a typo when entered into Ledger

The wallet was created using Electrum with derivation m/84/0 so I had bech32 addresses. I also have the zpub.

I've tried a bunch of options but I'm a bit lost in all honesty. Is there any way to recover this? Thanks

svrnhdl commented 4 years ago

Good news. Managed to recover the passphrase with the btcrecover tool.

Took the zpub from the wallet with the wrong passphrase and converted to xpub using this tool.

Next, I ran the btcrecover using this command:

python btcrecover.py --tokenlist testcase.txt --typos 3 --typos-swap --typos-repeat --typos-delete --typos-replace %d --bip39 --bip32-path "m/84'/0'/0'/0" --max-typos-swap 2 --max-typos-repeat 2 --max-typos-delete 2 --typos-insert %d --max-typos-insert 2

found it after a few minutes

Best,

3rdIteration commented 4 years ago

Great. I have also added Bech32 support over at https://github.com/3rdIteration/btcrecover

Have still yet to fully add it for the addressDB mode, but it now supports a much wider range of currencies with all three address formats.