sign

suspend fun sign(roomUuid: RoomUUID, secretShare: ExportableEd25519SecretShare, msg: ByteArray): Ed25519Signature

Signs a message using exportable Ed25519 and multi-party computation.

This function requires threshold number of parties to participate in the signing. Like Schnorr signatures in general, in Ed25519 there's no need to hash the message before signing.

Return

The signature of the message as a ByteArray, which can be verified using the public key

Parameters

roomUuid

The UUID of the signing room

secretShare

The secret share to be used for signing

msg

The message to be signed as a byte array