Skip to content
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

Store Hashed Password to Wallet Path #7295

Merged
merged 23 commits into from
Sep 22, 2020
Merged

Conversation

rauljordan
Copy link
Contributor

What type of PR is this?

Feature

What does this PR do? Why is it needed?

This PR stores the wallet password's bcrypt hash to the wallet path upon wallet creation, wallet recovery, or wallet import. This hash will be checked every time we attempt to open the wallet. If a user does not have this hash stored on disk, we attempt to initialize the keymanager (which will perform some validation by attempting to decrypt the account keystores), and then write the password hash to disk for next time, allowing this change to be backwards compatible.

Which issues(s) does this PR fix?

Fixes #7269

@rauljordan rauljordan requested a review from a team as a code owner September 22, 2020 02:10
@rauljordan rauljordan self-assigned this Sep 22, 2020
@rauljordan rauljordan added AccountsV2 Bug Something isn't working labels Sep 22, 2020
@codecov
Copy link

codecov bot commented Sep 22, 2020

Codecov Report

Merging #7295 into master will decrease coverage by 0.18%.
The diff coverage is 53.73%.

@@            Coverage Diff             @@
##           master    #7295      +/-   ##
==========================================
- Coverage   59.55%   59.36%   -0.19%     
==========================================
  Files         419      418       -1     
  Lines       30185    30062     -123     
==========================================
- Hits        17976    17847     -129     
- Misses       9265     9281      +16     
+ Partials     2944     2934      -10     

@prylabs-bulldozer prylabs-bulldozer bot merged commit ba440ab into master Sep 22, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix-password-override branch September 22, 2020 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When creating a new Direct-type wallet, the password provided is not used
2 participants