InMemoryVaultStore class

An in memory implementation of VaultStore for storing seed and account index data.

This implementation stores all data in memory

Inheritance

Constructors

InMemoryVaultStore.new()
Creates a new instance of InMemoryVaultStore.

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

clear() Future<void>
Removes all stored data including account index and seed
override
getAccountIndex() Future<int>
Retrieves the account index from storage.
override
getContentKey() Future<Uint8List?>
Retrieves the key to decrypt content.
override
getRandomSeed() Uint8List
Generates a new random seed of 32 bytes.
inherited
getSeed() Future<Uint8List?>
Retrieves the stored seed value.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAccountIndex(int accountIndex) Future<void>
Stores the account index to storage.
override
setContentKey(Uint8List key) Future<void>
Stores the key to decrypt content.
override
setSeed(Uint8List seed) Future<void>
Stores the seed value, overwriting any previous seed.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited