I have a 12 word mnemonic but I'm unsure of the order, I know that the BIP39 mnemonics use a checksum, are there any tools I can use to re-order the 12 words correctly so that they pass the checksum?
Is the checksum used for fixing the order or just for fixing typos / eliminating similar looking words?– Sergei TikhomirovDec 7, 2017 at 17:24
@SergeiTikhomirov typos fixed by words being distant enough from each other. I would say check sums are for fixing order, mostly.– MoonwalkerJan 3 at 21:38
The bitcoin-explorer (bx) command at mnemonic-to-seed throws exceptions if the checksums don't don't add up.
When you find combinations of BIP 39 words that pass checksum tests, then perform an operation like this to identify Bitcoin compressed Bitcoin addresses that might have funds:
echo "bunker wreck real edge inflict aerobic buddy mercy divorce wolf bright immune fat foot poet section sustain reveal unique reflect have latin problem chapter" | bx mnemonic-to-seed -p 123 | bx hd-new | bx hd-private -d -i 44 | bx hd-private -d -i 0 | bx hd-private -d -i 0 | bx hd-public -i 0 | bx hd-public -i 0 | bx hd-to-ec | bx ec-to-address -v 0
Then examine the results of https://blockchain.info/address/1Ec2nBkUMSQmmhxWeXMB98gFVCKTmHbRJb to see if there was ever any wallet activity for M/44'/0'/0'/0/0.
This approach for older BIP 44 P2PKH addresses can be automated with scripts. This approach can also be extended to accommodate newer segwit-related BIP 49 P2WPKH-nested-in-P2SH addresses that begin with the number 3. The basis for doing so is provided below.
echo "bunker wreck real edge inflict aerobic buddy mercy divorce wolf bright immune fat foot poet section sustain reveal unique reflect have latin problem chapter" | bx mnemonic-to-seed -p 123 | bx hd-new | bx hd-private -d -i 49 | bx hd-private -d -i 0 | bx hd-private -d -i 0 | bx hd-private -i 0 | bx hd-private -i 0 | bx hd-to-ec | bx ec-to-public | bx bitcoin160
echo "0 [351d3fffea471eb3740a5661cf059b5eb73483dd]" | bx script-to-address -v 5
As I implied in my answer, I don't see anything in BIP39 that would imply that the order of the words is checksummed. Can you be more specific about "checksums don't add up" or "pass checksum tests"? If I'm right, the only way to test word order is the blockchain.info test with bx's output that you specified, or the input-into-HD-wallet test that I mentioned. Thanks for any insight... Dec 7, 2017 at 19:01
Proper behavior: % bx mnemonic-to-seed --language en rebel genius lunar mosquito pupil toilet web machine make stumble wear identify bc1dc4505b7c258cd7a140d8ccc14d6a5bcd5313ad4c132d3db089e69845ae95a5bd43d43194a12036acf46a9a78c1f3a86d40f7cab8a0d6789365c5ab1497e7 Exception thrown: % bx mnemonic-to-seed --language en rebel genius lunar mosquito pupil toilet web machine make stumble wear wear The specified words are not a valid mnemonic in the specified dictionary.– skahtDec 7, 2017 at 19:10
At least one of those words, "en", is not on the BIP39 word list, so that would generate a "not a valid mnemonic" exception; I believe a count of 14 words would also. What I'm inquiring about is an exception generated by an incorrect word ordering. Dec 7, 2017 at 19:18
That tells one that a bad combination of BIP 39 words were grouped together. Read github.com/libbitcoin/libbitcoin-explorer/wiki/… to see what the en argument does.– skahtDec 7, 2017 at 19:20
Right, I overlooked the "--" prefix on "language" ("language" is in the BIP39 dictionary!) Sorry. But, copy-pasting the command from your reply above: $ ./bx mnemonic-to-seed --language en rebel genius lunar mosquito pupil toilet web machine make stumble wear identify bc1dc4505b7c258cd7a140d8ccc14d6a5bcd5313ad4c132d3db089e69845ae95a5bd43d43194a12036acf46a9a78c1f3a86d40f7cab8a0d6789365c5ab1497e7 Dec 7, 2017 at 21:28
Have you tried btcrecover?: https://github.com/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.
As already suggested you should try the Seed Recover script.