recover

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

Rebuilds a lost keyshare from the other two parties and returns its keyId.

A 2-of-3 capability: given the public key of the missing share, the cooperating parties reconstruct it. The recovered share is persisted to the session's StorageClient and reconciled internally — the caller only receives the keyId.

val keyId = session.recover(keysharePublicKey).getOrThrow()
val signature = session.sign(keyId, messageHashHex).getOrThrow()

Return

the hex-encoded keyId of the recovered key.

Parameters

keysharePublicKey

the public key of the keyshare to recover.