EncryptedEnvelope

@Serializable
data class EncryptedEnvelope(val id: MessageId, val sender: DeviceAddress, val recipient: DeviceAddress, val protocolVersion: Int = 1, val payload: ByteArray)

Transport envelope. The payload stays opaque to the server.

protocolVersion gives the wire format room to evolve independently of Kodium's internal serialization format.

Constructors

Link copied to clipboard
constructor(id: MessageId, sender: DeviceAddress, recipient: DeviceAddress, protocolVersion: Int = 1, payload: ByteArray)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard