-
Notifications
You must be signed in to change notification settings - Fork 0
Support Multi-SRP in SeedlessOnboardingController #5
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
base: feat/seedless-onboarding-controller
Are you sure you want to change the base?
Support Multi-SRP in SeedlessOnboardingController #5
Conversation
…ler' into feat/seedless-multi-srp
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.
lgtm, minor suggestions
* @param password - The password to verify. | ||
* @throws {Error} If the password is invalid or the vault is not initialized. | ||
*/ | ||
async verifyPassword(password: string): Promise<void> { |
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.
async verifyPassword(password: string): Promise<void> { | |
async verifyVaultPassword(password: string): Promise<void> { |
* | ||
* @param password - The password to submit. | ||
*/ | ||
async submitPassword(password: string): Promise<void> { |
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.
can't we simply call it unlockVault?
const { keyringId, seedPhrase } = item; | ||
const backupHash = keccak256AndHexify(seedPhrase); | ||
|
||
const existingBackupMetadata = currentBackupsMetadata.find( |
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.
use some instead of find since you only need the boolean
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.
what if there are duplicates in the new data? pls account for that too.
simple way is to concat first and then remove duplicates
Explanation
References
Changelog
Checklist