Companion

object Companion

Properties

Link copied to clipboard
const val SIZE: Int = 32

Functions

Link copied to clipboard
fun of(message: PreKeyMessage, responderIdentityKey: ByteArray): SessionInitiationId

The version 1 ID of the initiation message belongs to, for the responder whose public identity key is responderIdentityKey. Only for sessions created before S1; never trust it for anything new.

Link copied to clipboard
fun v2Of(message: PreKeyMessage, sender: DeviceAddress, recipient: DeviceAddress, responderIdentityKey: ByteArray): SessionInitiationId

The version 2 ID of the initiation message belongs to, for a message from sender to recipient, whose public identity key is responderIdentityKey. Requires a SessionInitiationVersion.V2 message.