Skip to content

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

Draft
wants to merge 20 commits into
base: feat/seedless-onboarding-controller
Choose a base branch
from

Conversation

lwin-kyaw
Copy link

Explanation

References

Changelog

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed, highlighting breaking changes as necessary
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

Copy link
Member

@himanshuchawla009 himanshuchawla009 left a 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> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
async verifyPassword(password: string): Promise<void> {
async verifyVaultPassword(password: string): Promise<void> {

*
* @param password - The password to submit.
*/
async submitPassword(password: string): Promise<void> {
Copy link
Member

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(
Copy link
Member

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

Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants