SilentShardStorageClient

Abstract base class for SilentShard storage implementations.

Extend this class to implement custom storage backends for keyshare persistence. The storage manages the reconciliation state of distributed keyshares.

Implementation Requirements

Your implementation must:

  • Handle concurrent access safely

  • Encrypt sensitive keyshare data

  • Provide atomic write operations

  • Handle storage failures gracefully

See also

for the interface definition

for the data structure

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
abstract suspend override fun read(key: String): ReconcileStoreDao?

Reads a Dao from the storage. Returns null if the Dao is not found for the given key.

Link copied to clipboard
abstract suspend override fun write(dao: StorageDao)

Writes a Dao to the storage. Update every field of the Dao whenever this callback is invoked.