-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
HD wallet #1405
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
@@ -90,6 +90,7 @@ | |||
testScripts = [ | |||
'bip68-112-113-p2p.py', | |||
'wallet.py', | |||
'wallet-hd.py', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.