wrap Message Payload
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
peer Id
node Id