-
Notifications
You must be signed in to change notification settings - Fork 736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SegWit P2WPKH-in-P2SH support for BIP39 password recovery? #174
Comments
I've put together a script combining btcrecover (only to generate passwords) with SegWit code from Electrum to test wallet against a known address. Takes 1-2 seconds per guess, so it only works if you have a very good idea what the passphrase is. |
You're right, there's currently no P2SH-P2WPKH support, but it is on the list... it's not super-difficult, but as usual the devil's in the details. |
Has work been started on this? I stupidly created a situation in which my time for working on this enhancement will pay for itself and then some. Want to make sure I don't waste anyone's efforts before I start. |
On mobile so I can't go into details, but yes I've started work on it. I think it's working in seedrecover, I haven't started work on btcrecover (shouldn't be hard since it just calls into the seedrecover code) or unit tests. I think I'll leave address database support for later.
If someone wouldn't mind creating two dummy wallets that I could use in unit tests it would save me some time. Both using the same mnemonic, one without a passphrase and one with the bip39 passphrase `btcr-test-password`, and posting the mnemonic and the first 5 addresses of each would be great.
|
Sorry for the delayed response. I can try to do this later if I get time and it hasn't been done yet. Looking at my calendar, I won't have time to significantly work on this feature for another month now. |
@gurnec Here you go: BIP39 Mnemonic: no passwordBIP39 Seed:
password:
|
path | address | public key | private key |
---|---|---|---|
m/49'/0'/0'/0/0 | 3N9CPc7qMpZkPYMMJ1M18gwRXiMgBzs4RJ | 039c10be95fbc66218f696fc6b90e32af0cf3f522fa2c4efb90a0e7a7900030325 | L22oeVq2Y5FnrtxW2eCZiV7WLVDsKP2KMekuYEPRgQEjhCE13U6k |
m/49'/0'/0'/0/1 | 37xR81CPxerB5ze6g17GYWXcx6yyFyrJFu | 02cdae315ddb7ba644759ca10d3ece097df5f497b6b105a0a06a510a9572e4f61d | L5dvLaZtRwZYqJJrgGtezkxPSVLUYtwtLirfTyB84y2TW3QYQN5y |
m/49'/0'/0'/0/2 | 34ZUcHCoa2JJTrhbeJCWPpwbaqkrywbjPe | 031bcee819a4cc4f67ff59b4d69daf83b156f7606c62093eaaef461cd73d59ed2a | Kz4TEcs63VbddUsziXNE7ExGhpm592U1vpHLrhautTeWJKQUyGT9 |
m/49'/0'/0'/0/3 | 3AHbCcndmFS3g3RmJM5KbgDJboioHSN2Kk | 02fa4b0aa7b2c9391668b33599da88f95106d21c6ede1fbb37940f30b8625413e2 | KzYtqrJ6PWKJ5iUsey7jQYfyxEmsJLgrVX4SXv3mFdWxx38k8v7w |
m/49'/0'/0'/0/4 | 32RvRqsE6DFgoZYYpyRQFaPjYrT1Ybketo | 02d7e50557bea952b92547963e31484538b6869ee15d3cfa2f4a2e97ae6f540c37 | L5Rru3J8F5KpKkE6xvsv84x1pUF18i42RfPrK6hFJnW9q8YvDTUe |
please, when SegWit support, i lost 1 out of 12 words from my mnemonic and it is segwit adress :( |
I recovered my seed phrase with a modification to Ian Coleman's BIP39 tool. Instructions here: https://s3-us-west-2.amazonaws.com/bip39-seed-recovery/index.html Today I added a new section to the bottom of my page with instructions to recover a passphrase. It can work with Segwit addresses. You just have to select the correct tab in the derivation path section of Ian Coleman's page. If you select the BIP49 tab in the Derivation Path of Ian Coleman's page, it produces the same addresses from the sample mnemonic and passphrase that you provided. |
Use this instead: https://github.com/3rdIteration/btcrecover |
Hi, I'm trying to recover a password from a Trezor BIP32/39/43/49 wallet. By default these are
SegWit-in-P2SH
now (unless user chooses the Legacy option).Is it true that only P2PKH addresses are supported?
Any suggestions how to proceed?
Thanks!
The text was updated successfully, but these errors were encountered: