getKeyshareKeyId

abstract suspend fun getKeyshareKeyId(keyshare: ByteArray): Result<ByteArray>

Computes the keyId of a keyshare — a deterministic identifier derived from its public key. This is the same value DuoSession.keygen and DuoSession.import return. Runs locally.

Return

the keyId bytes; hex-encode them to obtain the string form used elsewhere.

Parameters

keyshare

the keyshare bytes, read from your StorageClient by keyId.