bcgov / bc-wallet-mobile

BC Wallet to hold Verifiable Credentials
Apache License 2.0
62 stars 50 forks source link

Unlock the wallet using the generated hash #571

Closed jleach closed 2 years ago

jleach commented 2 years ago

We would like to unlock the wallet using a generated hash rather than a stored hash of the PIN. This will allow us to fall back to the PIN unlock if biometrics fails. As part of this we can deal with #568 where we separate unlocking the wallet and starting communications with the mediator.

wadeking98 commented 2 years ago

I could tackle this one. I'm assuming we'll only be storing the generated hash if the User is using biometrics, correct?

jleach commented 2 years ago

@wadeking98 I think you'll need this one merged in first 446. Once a PR is in for this change move on it #568. They're pretty independent changes.

wadeking98 commented 2 years ago

@jleach in the biometrics case, is it necessary to load the wallet key from biometrics storage AND verify it against the wallet? checking the wallet key would add a few seconds to log on time and I don't think it would be possible for the wrong wallet key to end up in biometrics storage anyway

wadeking98 commented 2 years ago

Resolved by: https://github.com/hyperledger/aries-mobile-agent-react-native/pull/449