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

check pin method #513

Merged
merged 16 commits into from
May 15, 2023
Merged
Prev Previous commit
Next Next commit
chore: change pin to password
  • Loading branch information
r4mmer committed May 15, 2023
commit 6c25e63ea2fea9442a66120ee2750bbf15059110
4 changes: 2 additions & 2 deletions src/utils/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -627,12 +627,12 @@ const wallet = {
},

/**
* Change the encryption pin on the fields that are encrypted using the pin.
* Change the encryption password on the seed.
* Will not save the access data, only return the new access data.
*
* @param {IWalletAccessData} accessData The current access data encrypted with `oldPassword`.
* @param {string} oldPassword Used to decrypt the old access data.
* @param {string} newPassword Encrypt the fields with this pin.
* @param {string} newPassword Encrypt the seed with this password.
* @returns {IWalletAccessData} The access data with fields encrypted with `newPassword`.
*/
changeEncryptionPassword(accessData: IWalletAccessData, oldPassword: string, newPassword: string): IWalletAccessData {
Expand Down