recovery

abstract suspend fun recovery(keysharePublicKey: ByteArray): Result<ByteArray>

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.recovery(keysharePublicKey).getOrThrow()
saveKeyshareToStorage(recoveredKeyshare)

Return

Result containing the recovered and reconciled keyshare as ByteArray

Parameters

keysharePublicKey

The public key of the keyshare to recover