SimpleStorageClient class

Simple storage client that implements the StorageClientInterface interface. It is used to store the keyshares in the run time memory in simple list. This enables quick integration with the SDK, but it is not recommended for production use.

Implemented types

Constructors

SimpleStorageClient([List<StorageKeyshare>? sk])

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storageKeyshares List<StorageKeyshare>
final

Methods

createKeyshare(StorageKeyshare data) Future<void>
Creates a new StorageKeyshare in the storage client.
override
deleteKeyshare(String id) Future<void>
Deletes a StorageKeyshare from the storage client for a given id.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readKeyshares(String keyId) Future<List<StorageKeyshare>>
Returns a list of StorageKeyshare for a given keyId.
override
setStorageKeyshares(List<StorageKeyshare> sk) → dynamic
Sets the list of StorageKeyshare to the storage client.
toString() String
A string representation of this object.
inherited
updateKeyshare(String id, StorageKeyshare newKeyshare) Future<void>
Updates a StorageKeyshare in the storage client for a given id.
override

Operators

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