sampleKey

suspend fun sampleKey(roomUuid: RoomUUID, numParties: Int, threshold: Int, keygenInitKeypair: KeygenPrivateKey, keygenIds: Array<KeygenID>): Pair<Ed25519PublicKey, ExportableEd25519SecretShare>

Generates exportable Ed25519 keys using multi-party computation (for key initiator).

This function is only used by the party that is initiating the key generation process. Other parties should use receiveKey.

Return

Pair of public key as a ByteArray and secret share as a String

Parameters

roomUuid

The UUID of the keygen room

numParties

The number of parties that will join the keygen room (value in range 1..65535)

threshold

The threshold of the keypair to be generated (value in range 1..65535)

keygenInitKeypair

Contains the same keygenSecret that was used to generate the keygenId

keygenIds

The keygenId outputs from all other parties, received through a secure channel