wrapMessagePayload

suspend fun <P : EncryptedPayload> wrapMessagePayload(payload: P, peerId: String, nodeId: String): ByteArray

Encrypt and serialize the payload.

Also store the new ephemeral session key.

Parameters

payload
peerId
nodeId