BiometricStore class
Stores secrets encrypted with biometric authentication when available.
- Inheritance
-
- Object
- StarknetStore
- SecureStore
- BiometricStore
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
bytesToWords(
Uint8List secret) → List< String> -
Converts a Uint8List to a list of words by decoding it as UTF-8 and
splitting it by spaces.
inherited
-
deletePrivateKey(
{required String id}) → Future< void> -
Deletes the private key identified by
id
. -
deleteSecret(
{required String key}) → Future< void> -
Deletes the secret encrypted with biometric under
key
. -
deleteSeedPhrase(
{required String id}) → Future< void> -
Deletes the seed phrase identified by
id
. -
getPrivateKey(
{required String id, BiometricOptions? biometricOptions}) → Future< Uint8List?> -
Retrieves the private key associated with
id
encrypted with biometric. -
getSecret(
{required String key, required BiometricOptions? biometricOptions}) → Future< Uint8List?> -
Retrieves the secret encrypted with biometric under
key
. -
getSeedPhrase(
{required String id, BiometricOptions? biometricOptions}) → Future< List< String> ?> -
Retrieves the seed phrase corresponding to
id
encrypted with biometric. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
privateKeyOf(
String id) → String -
inherited
-
seedPhraseOf(
String id) → String -
inherited
-
storePrivateKey(
{required Uint8List privateKey, required String id, BiometricOptions? biometricOptions}) → Future< void> -
Stores the private key associated with
id
in a file encrypted with biometric. -
storeSecret(
{required String key, required Uint8List secret, required BiometricOptions? biometricOptions}) → Future< void> -
Stores a
secret
encrypted with biometry underkey
. -
storeSeedPhrase(
{required String id, required List< String> seedPhrase, BiometricOptions? biometricOptions}) → Future<void> -
Stores the
seedPhrase
corresponding toid
encrypted with biometric. -
toString(
) → String -
A string representation of this object.
inherited
-
when<
T> ({required FutureOr< T> biometric(BiometricStore), required FutureOr<T> password(PasswordStore)}) → Future<T> -
Uses the
biometric
function if the store is a BiometricStore and thepassword
function if the store is a PasswordStore.inherited -
wordsToBytes(
List< String> words) → Uint8List -
Converts words to Uint8List by concatenating them with a space separator
and encoding them as UTF-8.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited