reshareNewParty

suspend fun reshareNewParty(roomUuid: RoomUUID, oldThreshold: Int, newThreshold: Int, keygenInitKeypair: KeygenPrivateKey, keygenIds: Array<KeygenID>): Pair<EcdsaPublicKey, EcdsaSecretShare>

Reshares an ECDSA key for a new party.

WARNING: Key resharing is an advanced feature. Incorrect usage might compromise private key security. Developers must ensure that at least (n - t + 1) parties of the t-of-n signing quorum delete their current shares before using the reshared key.

This method is used by a new party (one that does not currently have a key share) to receive a key share in the new threshold-of-numParties quorum.

Return

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

Parameters

roomUuid

The UUID of the reshare room

oldThreshold

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

newThreshold

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

keygenInitKeypair

Contains the keygenSecret for new parties joining the quorum

keygenIds

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