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

chrome ext: validate privkey #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

chrome ext: validate privkey #16

wants to merge 1 commit into from

Conversation

tuxcanfly
Copy link
Collaborator

No description provided.

@@ -17,6 +18,11 @@ const PrivateKeyForm = (props) => {

function handleOnClick () {
const privateKey = state.privateKey
// TODO: handle UX
if (!bcrypto.browser.valid(privateKey)) {
console.error('invalid key');
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@yvsssantosh can you use this to show an error message that the key is invalid?

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.

1 participant