receiveKey

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

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

This function is used by parties that are receiving a key from the key initiator. The key initiator should use sampleKey.

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