5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-12-27 22:35:43 +00:00
matterbridge/vendor/go.mau.fi/libsignal/protocol/CiphertextMessage.go
2022-03-20 14:57:48 +01:00

20 lines
342 B
Go

package protocol
type CiphertextMessage interface {
Serialize() []byte
Type() uint32
}
type GroupCiphertextMessage interface {
CiphertextMessage
SignedSerialize() []byte
}
const UnsupportedVersion = 1
const CurrentVersion = 3
const WHISPER_TYPE = 2
const PREKEY_TYPE = 3
const SENDERKEY_TYPE = 4
const SENDERKEY_DISTRIBUTION_TYPE = 5