sign

suspend fun sign(roomUuid: RoomUUID, secretShare: Sr25519SecretShare, msg: ByteArray, derivationPath: Array<String>): Sr25519Signature

Signs a message using Sr25519 and multi-party computation.

This function requires threshold number of parties to participate in the signing. Unlike ECDSA, in Sr25519 there's no need to hash the message before signing.

Return

The signature of the message, 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

derivationPath

The soft derivation path to use for signing the message