HD wallet#1405
Conversation
4434d5b to
d2eed76
Compare
|
Whoa. You can do this in core? |
|
Will mean everyone needs to export and reimport their privkeys to the new wallet structure. But I can confirm this works as it is in https://github.com/duality-solutions/dynamic |
|
What that HD stands for? |
|
@SCDeveloper Yep, there will be a need in some migration for old users (optional though). Another option would be to create a completely new wallet and then simply send all funds from an old wallet to a new one. This way ALL keys will be recoverable. And yes, that repo was where I started from first and was able to compile wallet actually after resolving some conflicts. But I wasn't happy with way too many changes all over the place due to embedded refactoring, so had to backport upstream changes selectively instead. Anyway, thanks for the starting point :) @akijuh Hierarchical Deterministic (HD) Wallets https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki |
70d0e7b to
4314a50
Compare
9577c4c to
4e830e7
Compare
|
This should be ready for review and testing now. |
|
Changes:
NOTE: This breaks compatibility with hd wallets created on previous commits. If you have such wallet, apply this patch locally and run it once: |
|
Wallet should now store mnemonic/mnemonicpassphrase. NOTE: This is incompatible with previous hd wallets once again, run-once patch EDIT: err... smth wasn't quite right with that commit, so I had to force push, sorry :/ |
replace dumphdseed with dumphdinfo
(plus some code cleanup)
- use `SecureVector` for data, bits, seed - `Check` should return bool
|
Rebased to resolve merge conflict after #1473 (around this line https://github.com/dashpay/dash/pull/1405/files#diff-8bdec64a6a2adb83b9696e5ca6d5522bR1282) |
Follow up to dashpay#1405
| testScripts = [ | ||
| 'bip68-112-113-p2p.py', | ||
| 'wallet.py', | ||
| 'wallet-hd.py', |
HD wallet for Dash Core 0.12.2.x+
and mnemonic passphraseif mnemonic was not specified by the user explicitly);Note: mnemonic is not stored and can't be recovered.