recover

abstract suspend fun recover(keysharePublicKey: ByteArray): Result<String>

Recovers a keyshare using its public key, for advanced recovery scenarios.

This method performs the full recovery process and automatically reconciles the keyshare at the end.

Example

val recoveredKeyshare = session.recover(keysharePublicKey).getOrThrow()
saveKeyshareToStorage(recoveredKeyshare)

Return

Result containing the hex-encoded keyId of the recovered keyshare. The reconciled keyshare itself is persisted to the StorageClient owned by this session.

Parameters

keysharePublicKey

The public key of the keyshare to recover