refresh
suspend fun refresh(roomUuid: RoomUUID, secretShare: ExportableEd25519SecretShare): Pair<Ed25519PublicKey, ExportableEd25519SecretShare>
Refreshes the exportable Ed25519 secret share.
Used for refreshing the secret material of all parties without altering the public key. Takes a secret share as input and returns a new one with the same public key but with fresh key material.
Be careful to delete the original secret share before it is certain that all devices have properly stored the fresh secret share. Note that the new secret shares may only be used with each other; attempting to use older shares with newer ones for signing will result in failure.
Return
Pair of public key as a ByteArray and secret share as a String
Parameters
room Uuid
The UUID of the refresh room
secret Share
The secret share that will be refreshed