importPrivateKeyRecipient

suspend fun importPrivateKeyRecipient(roomUuid: RoomUUID, threshold: Int, keygenInitKeypair: KeygenPrivateKey, keygenIds: Array<KeygenID>): Pair<Sr25519PublicKey, Sr25519SecretShare>

Imports an Sr25519 private key (recipient).

WARNING: Private key import is an advanced feature. Shares generated from imported private keys have the risk of the private key being compromised if it's not properly deleted after the import operation.

This is the method that a new party (one that does not currently have the private key) should use for receiving a key share in the new threshold-of-numParties quorum.

Return

KeyGen object containing the public key and secret share for the imported keypair

Parameters

roomUuid

The UUID of the import room

threshold

The threshold of the new quorum (value in range 1..65535)

keygenInitKeypair

Contains the keygenSecret for the party receiving a share

keygenIds

The keygenIds of all parties that will be part of the new quorum