delete

abstract suspend fun delete(keyId: String): Result<Unit>

Removes a stored keyshare. After this call completes the supplied keyId is no longer resolvable through the SDK's operations.

Implementation detail: the SDK writes a ReconcileStoreDao with both currentKeyshare and stagedKeyshare set to null into the owned StorageClient. Consumer implementations of StorageClient should treat a null-filled DAO as "delete this row" (simple implementations may leave it as a tombstone — the SDK only reads non-null values).

Return

Result.success on successful storage write, Result.failure if the storage operation throws.

Parameters

keyId

Hex-encoded keyId of the keyshare to remove.