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

Show wallet creation error when key length mismatched #436

Conversation

pawanpaudel93
Copy link
Contributor

Summary

This PR shows the wallet generation error modal when actual key length doesn't equals to expected key length with retry action key to retry wallet generation. Also, it fixes the password matching logic.

How To Test

  • Maybe modify this
    modulusLength: 4096
    to choose the random keys length modulusLength: [4096, 2048][Math.floor(Math.random() * 2)] to test this PR so that the error modal shows.

@pawanpaudel93 pawanpaudel93 requested a review from 7i7o July 11, 2024 12:36
Copy link
Contributor

@7i7o 7i7o left a comment

Choose a reason for hiding this comment

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

Can we change the messaging?

  • Import/Add wallet from JWK: Error message 👍
  • Creating/Importing wallet from a seedphrase:
    • automatically retry
    • maybe show a message that it's taking longer than usual

Whenever we create the key (from a seedphrase), it should always be valid.
Whenever a key comes from the user, then we should show an error for bad keys.

@nicholaswma nicholaswma requested a review from 7i7o July 12, 2024 15:04
Copy link
Contributor

@7i7o 7i7o left a comment

Choose a reason for hiding this comment

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

tACK 👍

@pawanpaudel93 pawanpaudel93 merged commit cf4ac3a into arc-422-import-wallet-creation-error Jul 12, 2024
@pawanpaudel93 pawanpaudel93 deleted the arc-416-new-wallet-creation-error branch July 12, 2024 17:31
Copy link

🎉 This PR is included in version 1.17.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants