forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #5854: refactor: move HD code from CWallet to LegacyScriptPubKe…
…yMan b5f4411 fix: extra logs to distinct WriteHDChain for encrypted/raw batches (Konstantin Akimov) e8f84af refactor: move BIP39 related code to wallet (Konstantin Akimov) fa6519f refactor: move hdchain to wallet/ because it belongs there (Konstantin Akimov) 392b51b refactor: obsolete hdCryptedChain from ScriptPubKeyMan (Konstantin Akimov) a0389e1 refactor: rename EncryptHDChain to EncryptAndSetHDChain (Konstantin Akimov) b2143f9 refactor: re-order public and private methods in scriptpubkeyman (Konstantin Akimov) a219748 refactor: make SetHDChain private in ScriptPubKeyManager (Konstantin Akimov) f418b9a refactor: move Encrypt chain call inside ScriptPubKeyMan::Encrypt (Konstantin Akimov) c3754d5 refactor: move DecryptHDChain from public to private (Konstantin Akimov) e08b64a refactor: unify SetHDChainSingle and SetCryptedHDChainSingle (Konstantin Akimov) 59a9988 refactor: unify ScriptPubKeyMan's SetHDChain nad SetHDCryptedChain (Konstantin Akimov) a180d73 refactor: unify WalletBatch's WriteHDChain and WriteCryptedHDChain (Konstantin Akimov) 9c8e458 refactor: unify SetHDChain and SetCryptedHDChain helpers (Konstantin Akimov) 7b72726 refactor: SetCryptedHDChain moved to scriptpubkeyman (Konstantin Akimov) 6993d11 feat: extra check failure case CWallet::GenerateNewHDChainEncrypted (Konstantin Akimov) Pull request description: ## Issue being fixed or feature implemented During backport bitcoin#17261 significant part of HD chain has been forgotten in CWallet due to our own implementation. This PR do not change behaviour of HD wallets, it's just refactoring. ## What was done? This PR refactor HD wallets implementation: - key related stuff is moved from CWallet to LegacyScriptPubKeyMan (to follow-up bitcoin#17261) - refactored duplicated code between hdChain and hdCryptedChain - modules hdchain and bip39 related moved to wallet/ module ## How Has This Been Tested? Run unit/functional tests ## Breaking Changes N/A ## Checklist: - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [x] I have assigned this pull request to a milestone Top commit has no ACKs. Tree-SHA512: 763ea6dd9af902dfc4dd99896c1cb16a75e3c0322e806e37ff05bc9229923057c544732ebf9fca705da870568643370867d3f81a46cab1e9d229b2949016c484
- Loading branch information
Showing
16 changed files
with
161 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.