receive Key
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
room Uuid
The UUID of the keygen room
num Parties
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)
keygen Init Keypair
Contains the same keygenSecret that was used to generate the keygenId
keygen Ids
The keygenId outputs from all other parties, received through a secure channel