Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
direct seeded wallet password setup on reconfigure
When reconfiguring a seeded wallet (new or existing), avoid calling setWalletPassword, which unlocks and locks the wallet to test the password's validity. Unfortunately when creating a new seeded wallet the wallet is really unlocked for recovery/discovery, so it is incorrect to tread this as a locked wallet. Just set the pw and encPW directly. This fixes assetSeedAndPass computing seeded wallet password as the hash of an empty slice instead the hash of the seed. Add a test to ensure the derived wallet seed and password are deterministic and depend on both asset ID and app seed.
- Loading branch information
Showing
2 changed files
with
97 additions
and
13 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