encryptMessage

suspend fun encryptMessage(id: MLSGroupId, message: ByteArray): ByteArray

Encrypts a message for a given conversation.

Return

the encrypted payload for the given group. This needs to be fanned out to the other members of the group.

Parameters

id

conversation identifier

message
  • The plaintext message to encrypt