Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

When trying to load an identity with an invalid password, the error description could be more generic #110

Open
rauljareno opened this issue May 18, 2020 · 0 comments
Labels
Milestone

Comments

@rauljareno
Copy link
Contributor

When trying to load an identity with an invalid password, the error description is showing more information than needed of how the method is working internally - "Error unlocking babyjub key from keystore: Invalid encrypted data". I would suggest to return an error description more specific to this use case.

val identity = Iden3mobile.newIdentity(
"$storePath/alias",
"password",
web3Url,
1000,
null
) { event -> print(event) }

identity.stop()

Iden3mobile.newIdentityLoad(
"$storePath/alias",
"wrongPassword",
web3Url,
1000
) { event -> print(event) }

Result -> "Error unlocking babyjub key from keystore: Invalid encrypted data"
Expected -> "The password introduced to load the identity is not valid. Please, try again"

@arnaubennassar arnaubennassar added this to the phase3 milestone Jun 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants