Versions in this module Expand all Collapse all v1 v1.0.3 Feb 15, 2024 v1.0.2 Feb 15, 2024 Changes in this version + var File_serialize_FingerprintProtocol_proto protoreflect.FileDescriptor + var File_serialize_LocalStorageProtocol_proto protoreflect.FileDescriptor + var File_serialize_WhisperTextProtocol_proto protoreflect.FileDescriptor + type CombinedFingerprints struct + LocalFingerprint *LogicalFingerprint + RemoteFingerprint *LogicalFingerprint + Version *uint32 + func (*CombinedFingerprints) Descriptor() ([]byte, []int) + func (*CombinedFingerprints) ProtoMessage() + func (x *CombinedFingerprints) GetLocalFingerprint() *LogicalFingerprint + func (x *CombinedFingerprints) GetRemoteFingerprint() *LogicalFingerprint + func (x *CombinedFingerprints) GetVersion() uint32 + func (x *CombinedFingerprints) ProtoReflect() protoreflect.Message + func (x *CombinedFingerprints) Reset() + func (x *CombinedFingerprints) String() string + type DeviceConsistencyCodeMessage struct + Generation *uint32 + Signature []byte + func (*DeviceConsistencyCodeMessage) Descriptor() ([]byte, []int) + func (*DeviceConsistencyCodeMessage) ProtoMessage() + func (x *DeviceConsistencyCodeMessage) GetGeneration() uint32 + func (x *DeviceConsistencyCodeMessage) GetSignature() []byte + func (x *DeviceConsistencyCodeMessage) ProtoReflect() protoreflect.Message + func (x *DeviceConsistencyCodeMessage) Reset() + func (x *DeviceConsistencyCodeMessage) String() string + type IdentityKeyPairStructure struct + PrivateKey []byte + PublicKey []byte + func (*IdentityKeyPairStructure) Descriptor() ([]byte, []int) + func (*IdentityKeyPairStructure) ProtoMessage() + func (x *IdentityKeyPairStructure) GetPrivateKey() []byte + func (x *IdentityKeyPairStructure) GetPublicKey() []byte + func (x *IdentityKeyPairStructure) ProtoReflect() protoreflect.Message + func (x *IdentityKeyPairStructure) Reset() + func (x *IdentityKeyPairStructure) String() string + type JSONPreKeyRecordSerializer struct + func (j *JSONPreKeyRecordSerializer) Deserialize(serialized []byte) (*record.PreKeyStructure, error) + func (j *JSONPreKeyRecordSerializer) Serialize(preKey *record.PreKeyStructure) []byte + type JSONPreKeySignalMessageSerializer struct + func (j *JSONPreKeySignalMessageSerializer) Deserialize(serialized []byte) (*protocol.PreKeySignalMessageStructure, error) + func (j *JSONPreKeySignalMessageSerializer) Serialize(signalMessage *protocol.PreKeySignalMessageStructure) []byte + type JSONSenderKeyDistributionMessageSerializer struct + func (j *JSONSenderKeyDistributionMessageSerializer) Deserialize(serialized []byte) (*protocol.SenderKeyDistributionMessageStructure, error) + func (j *JSONSenderKeyDistributionMessageSerializer) Serialize(message *protocol.SenderKeyDistributionMessageStructure) []byte + type JSONSenderKeyMessageSerializer struct + func (j *JSONSenderKeyMessageSerializer) Deserialize(serialized []byte) (*protocol.SenderKeyMessageStructure, error) + func (j *JSONSenderKeyMessageSerializer) Serialize(message *protocol.SenderKeyMessageStructure) []byte + type JSONSenderKeySessionSerializer struct + func (j *JSONSenderKeySessionSerializer) Deserialize(serialized []byte) (*groupRecord.SenderKeyStructure, error) + func (j *JSONSenderKeySessionSerializer) Serialize(session *groupRecord.SenderKeyStructure) []byte + type JSONSenderKeyStateSerializer struct + func (j *JSONSenderKeyStateSerializer) Deserialize(serialized []byte) (*groupRecord.SenderKeyStateStructure, error) + func (j *JSONSenderKeyStateSerializer) Serialize(state *groupRecord.SenderKeyStateStructure) []byte + type JSONSessionSerializer struct + func (j *JSONSessionSerializer) Deserialize(serialized []byte) (*record.SessionStructure, error) + func (j *JSONSessionSerializer) Serialize(session *record.SessionStructure) []byte + type JSONSignalMessageSerializer struct + func (j *JSONSignalMessageSerializer) Deserialize(serialized []byte) (*protocol.SignalMessageStructure, error) + func (j *JSONSignalMessageSerializer) Serialize(signalMessage *protocol.SignalMessageStructure) []byte + type JSONSignedPreKeyRecordSerializer struct + func (j *JSONSignedPreKeyRecordSerializer) Deserialize(serialized []byte) (*record.SignedPreKeyStructure, error) + func (j *JSONSignedPreKeyRecordSerializer) Serialize(signedPreKey *record.SignedPreKeyStructure) []byte + type JSONStateSerializer struct + func (j *JSONStateSerializer) Deserialize(serialized []byte) (*record.StateStructure, error) + func (j *JSONStateSerializer) Serialize(state *record.StateStructure) []byte + type KeyExchangeMessage struct + BaseKey []byte + BaseKeySignature []byte + Id *uint32 + IdentityKey []byte + RatchetKey []byte + func (*KeyExchangeMessage) Descriptor() ([]byte, []int) + func (*KeyExchangeMessage) ProtoMessage() + func (x *KeyExchangeMessage) GetBaseKey() []byte + func (x *KeyExchangeMessage) GetBaseKeySignature() []byte + func (x *KeyExchangeMessage) GetId() uint32 + func (x *KeyExchangeMessage) GetIdentityKey() []byte + func (x *KeyExchangeMessage) GetRatchetKey() []byte + func (x *KeyExchangeMessage) ProtoReflect() protoreflect.Message + func (x *KeyExchangeMessage) Reset() + func (x *KeyExchangeMessage) String() string + type LogicalFingerprint struct + Content []byte + Identifier []byte + func (*LogicalFingerprint) Descriptor() ([]byte, []int) + func (*LogicalFingerprint) ProtoMessage() + func (x *LogicalFingerprint) GetContent() []byte + func (x *LogicalFingerprint) GetIdentifier() []byte + func (x *LogicalFingerprint) ProtoReflect() protoreflect.Message + func (x *LogicalFingerprint) Reset() + func (x *LogicalFingerprint) String() string + type PreKeyRecordStructure struct + Id *uint32 + PrivateKey []byte + PublicKey []byte + func (*PreKeyRecordStructure) Descriptor() ([]byte, []int) + func (*PreKeyRecordStructure) ProtoMessage() + func (x *PreKeyRecordStructure) GetId() uint32 + func (x *PreKeyRecordStructure) GetPrivateKey() []byte + func (x *PreKeyRecordStructure) GetPublicKey() []byte + func (x *PreKeyRecordStructure) ProtoReflect() protoreflect.Message + func (x *PreKeyRecordStructure) Reset() + func (x *PreKeyRecordStructure) String() string + type PreKeySignalMessage struct + BaseKey []byte + IdentityKey []byte + Message []byte + PreKeyId *uint32 + RegistrationId *uint32 + SignedPreKeyId *uint32 + func (*PreKeySignalMessage) Descriptor() ([]byte, []int) + func (*PreKeySignalMessage) ProtoMessage() + func (x *PreKeySignalMessage) GetBaseKey() []byte + func (x *PreKeySignalMessage) GetIdentityKey() []byte + func (x *PreKeySignalMessage) GetMessage() []byte + func (x *PreKeySignalMessage) GetPreKeyId() uint32 + func (x *PreKeySignalMessage) GetRegistrationId() uint32 + func (x *PreKeySignalMessage) GetSignedPreKeyId() uint32 + func (x *PreKeySignalMessage) ProtoReflect() protoreflect.Message + func (x *PreKeySignalMessage) Reset() + func (x *PreKeySignalMessage) String() string + type ProtoBufPreKeySignalMessageSerializer struct + func (j *ProtoBufPreKeySignalMessageSerializer) Deserialize(serialized []byte) (*protocol.PreKeySignalMessageStructure, error) + func (j *ProtoBufPreKeySignalMessageSerializer) Serialize(signalMessage *protocol.PreKeySignalMessageStructure) []byte + type ProtoBufSenderKeyDistributionMessageSerializer struct + func (j *ProtoBufSenderKeyDistributionMessageSerializer) Deserialize(serialized []byte) (*protocol.SenderKeyDistributionMessageStructure, error) + func (j *ProtoBufSenderKeyDistributionMessageSerializer) Serialize(message *protocol.SenderKeyDistributionMessageStructure) []byte + type ProtoBufSenderKeyMessageSerializer struct + func (j *ProtoBufSenderKeyMessageSerializer) Deserialize(serialized []byte) (*protocol.SenderKeyMessageStructure, error) + func (j *ProtoBufSenderKeyMessageSerializer) Serialize(message *protocol.SenderKeyMessageStructure) []byte + type ProtoBufSignalMessageSerializer struct + func (j *ProtoBufSignalMessageSerializer) Deserialize(serialized []byte) (*protocol.SignalMessageStructure, error) + func (j *ProtoBufSignalMessageSerializer) Serialize(signalMessage *protocol.SignalMessageStructure) []byte + type RecordStructure struct + CurrentSession *SessionStructure + PreviousSessions []*SessionStructure + func (*RecordStructure) Descriptor() ([]byte, []int) + func (*RecordStructure) ProtoMessage() + func (x *RecordStructure) GetCurrentSession() *SessionStructure + func (x *RecordStructure) GetPreviousSessions() []*SessionStructure + func (x *RecordStructure) ProtoReflect() protoreflect.Message + func (x *RecordStructure) Reset() + func (x *RecordStructure) String() string + type SenderKeyDistributionMessage struct + ChainKey []byte + Id *uint32 + Iteration *uint32 + SigningKey []byte + func (*SenderKeyDistributionMessage) Descriptor() ([]byte, []int) + func (*SenderKeyDistributionMessage) ProtoMessage() + func (x *SenderKeyDistributionMessage) GetChainKey() []byte + func (x *SenderKeyDistributionMessage) GetId() uint32 + func (x *SenderKeyDistributionMessage) GetIteration() uint32 + func (x *SenderKeyDistributionMessage) GetSigningKey() []byte + func (x *SenderKeyDistributionMessage) ProtoReflect() protoreflect.Message + func (x *SenderKeyDistributionMessage) Reset() + func (x *SenderKeyDistributionMessage) String() string + type SenderKeyMessage struct + Ciphertext []byte + Id *uint32 + Iteration *uint32 + func (*SenderKeyMessage) Descriptor() ([]byte, []int) + func (*SenderKeyMessage) ProtoMessage() + func (x *SenderKeyMessage) GetCiphertext() []byte + func (x *SenderKeyMessage) GetId() uint32 + func (x *SenderKeyMessage) GetIteration() uint32 + func (x *SenderKeyMessage) ProtoReflect() protoreflect.Message + func (x *SenderKeyMessage) Reset() + func (x *SenderKeyMessage) String() string + type SenderKeyRecordStructure struct + SenderKeyStates []*SenderKeyStateStructure + func (*SenderKeyRecordStructure) Descriptor() ([]byte, []int) + func (*SenderKeyRecordStructure) ProtoMessage() + func (x *SenderKeyRecordStructure) GetSenderKeyStates() []*SenderKeyStateStructure + func (x *SenderKeyRecordStructure) ProtoReflect() protoreflect.Message + func (x *SenderKeyRecordStructure) Reset() + func (x *SenderKeyRecordStructure) String() string + type SenderKeyStateStructure struct + SenderChainKey *SenderKeyStateStructure_SenderChainKey + SenderKeyId *uint32 + SenderMessageKeys []*SenderKeyStateStructure_SenderMessageKey + SenderSigningKey *SenderKeyStateStructure_SenderSigningKey + func (*SenderKeyStateStructure) Descriptor() ([]byte, []int) + func (*SenderKeyStateStructure) ProtoMessage() + func (x *SenderKeyStateStructure) GetSenderChainKey() *SenderKeyStateStructure_SenderChainKey + func (x *SenderKeyStateStructure) GetSenderKeyId() uint32 + func (x *SenderKeyStateStructure) GetSenderMessageKeys() []*SenderKeyStateStructure_SenderMessageKey + func (x *SenderKeyStateStructure) GetSenderSigningKey() *SenderKeyStateStructure_SenderSigningKey + func (x *SenderKeyStateStructure) ProtoReflect() protoreflect.Message + func (x *SenderKeyStateStructure) Reset() + func (x *SenderKeyStateStructure) String() string + type SenderKeyStateStructure_SenderChainKey struct + Iteration *uint32 + Seed []byte + func (*SenderKeyStateStructure_SenderChainKey) Descriptor() ([]byte, []int) + func (*SenderKeyStateStructure_SenderChainKey) ProtoMessage() + func (x *SenderKeyStateStructure_SenderChainKey) GetIteration() uint32 + func (x *SenderKeyStateStructure_SenderChainKey) GetSeed() []byte + func (x *SenderKeyStateStructure_SenderChainKey) ProtoReflect() protoreflect.Message + func (x *SenderKeyStateStructure_SenderChainKey) Reset() + func (x *SenderKeyStateStructure_SenderChainKey) String() string + type SenderKeyStateStructure_SenderMessageKey struct + Iteration *uint32 + Seed []byte + func (*SenderKeyStateStructure_SenderMessageKey) Descriptor() ([]byte, []int) + func (*SenderKeyStateStructure_SenderMessageKey) ProtoMessage() + func (x *SenderKeyStateStructure_SenderMessageKey) GetIteration() uint32 + func (x *SenderKeyStateStructure_SenderMessageKey) GetSeed() []byte + func (x *SenderKeyStateStructure_SenderMessageKey) ProtoReflect() protoreflect.Message + func (x *SenderKeyStateStructure_SenderMessageKey) Reset() + func (x *SenderKeyStateStructure_SenderMessageKey) String() string + type SenderKeyStateStructure_SenderSigningKey struct + Private []byte + Public []byte + func (*SenderKeyStateStructure_SenderSigningKey) Descriptor() ([]byte, []int) + func (*SenderKeyStateStructure_SenderSigningKey) ProtoMessage() + func (x *SenderKeyStateStructure_SenderSigningKey) GetPrivate() []byte + func (x *SenderKeyStateStructure_SenderSigningKey) GetPublic() []byte + func (x *SenderKeyStateStructure_SenderSigningKey) ProtoReflect() protoreflect.Message + func (x *SenderKeyStateStructure_SenderSigningKey) Reset() + func (x *SenderKeyStateStructure_SenderSigningKey) String() string + type Serializer struct + PreKeyRecord record.PreKeySerializer + PreKeySignalMessage protocol.PreKeySignalMessageSerializer + SenderKeyDistributionMessage protocol.SenderKeyDistributionMessageSerializer + SenderKeyMessage protocol.SenderKeyMessageSerializer + SenderKeyRecord groupRecord.SenderKeySerializer + SenderKeyState groupRecord.SenderKeyStateSerializer + Session record.SessionSerializer + SignalMessage protocol.SignalMessageSerializer + SignedPreKeyRecord record.SignedPreKeySerializer + State record.StateSerializer + func NewJSONSerializer() *Serializer + func NewProtoBufSerializer() *Serializer + func NewSerializer() *Serializer + type SessionStructure struct + AliceBaseKey []byte + LocalIdentityPublic []byte + LocalRegistrationId *uint32 + NeedsRefresh *bool + PendingKeyExchange *SessionStructure_PendingKeyExchange + PendingPreKey *SessionStructure_PendingPreKey + PreviousCounter *uint32 + ReceiverChains []*SessionStructure_Chain + RemoteIdentityPublic []byte + RemoteRegistrationId *uint32 + RootKey []byte + SenderChain *SessionStructure_Chain + SessionVersion *uint32 + func (*SessionStructure) Descriptor() ([]byte, []int) + func (*SessionStructure) ProtoMessage() + func (x *SessionStructure) GetAliceBaseKey() []byte + func (x *SessionStructure) GetLocalIdentityPublic() []byte + func (x *SessionStructure) GetLocalRegistrationId() uint32 + func (x *SessionStructure) GetNeedsRefresh() bool + func (x *SessionStructure) GetPendingKeyExchange() *SessionStructure_PendingKeyExchange + func (x *SessionStructure) GetPendingPreKey() *SessionStructure_PendingPreKey + func (x *SessionStructure) GetPreviousCounter() uint32 + func (x *SessionStructure) GetReceiverChains() []*SessionStructure_Chain + func (x *SessionStructure) GetRemoteIdentityPublic() []byte + func (x *SessionStructure) GetRemoteRegistrationId() uint32 + func (x *SessionStructure) GetRootKey() []byte + func (x *SessionStructure) GetSenderChain() *SessionStructure_Chain + func (x *SessionStructure) GetSessionVersion() uint32 + func (x *SessionStructure) ProtoReflect() protoreflect.Message + func (x *SessionStructure) Reset() + func (x *SessionStructure) String() string + type SessionStructure_Chain struct + ChainKey *SessionStructure_Chain_ChainKey + MessageKeys []*SessionStructure_Chain_MessageKey + SenderRatchetKey []byte + SenderRatchetKeyPrivate []byte + func (*SessionStructure_Chain) Descriptor() ([]byte, []int) + func (*SessionStructure_Chain) ProtoMessage() + func (x *SessionStructure_Chain) GetChainKey() *SessionStructure_Chain_ChainKey + func (x *SessionStructure_Chain) GetMessageKeys() []*SessionStructure_Chain_MessageKey + func (x *SessionStructure_Chain) GetSenderRatchetKey() []byte + func (x *SessionStructure_Chain) GetSenderRatchetKeyPrivate() []byte + func (x *SessionStructure_Chain) ProtoReflect() protoreflect.Message + func (x *SessionStructure_Chain) Reset() + func (x *SessionStructure_Chain) String() string + type SessionStructure_Chain_ChainKey struct + Index *uint32 + Key []byte + func (*SessionStructure_Chain_ChainKey) Descriptor() ([]byte, []int) + func (*SessionStructure_Chain_ChainKey) ProtoMessage() + func (x *SessionStructure_Chain_ChainKey) GetIndex() uint32 + func (x *SessionStructure_Chain_ChainKey) GetKey() []byte + func (x *SessionStructure_Chain_ChainKey) ProtoReflect() protoreflect.Message + func (x *SessionStructure_Chain_ChainKey) Reset() + func (x *SessionStructure_Chain_ChainKey) String() string + type SessionStructure_Chain_MessageKey struct + CipherKey []byte + Index *uint32 + Iv []byte + MacKey []byte + func (*SessionStructure_Chain_MessageKey) Descriptor() ([]byte, []int) + func (*SessionStructure_Chain_MessageKey) ProtoMessage() + func (x *SessionStructure_Chain_MessageKey) GetCipherKey() []byte + func (x *SessionStructure_Chain_MessageKey) GetIndex() uint32 + func (x *SessionStructure_Chain_MessageKey) GetIv() []byte + func (x *SessionStructure_Chain_MessageKey) GetMacKey() []byte + func (x *SessionStructure_Chain_MessageKey) ProtoReflect() protoreflect.Message + func (x *SessionStructure_Chain_MessageKey) Reset() + func (x *SessionStructure_Chain_MessageKey) String() string + type SessionStructure_PendingKeyExchange struct + LocalBaseKey []byte + LocalBaseKeyPrivate []byte + LocalIdentityKey []byte + LocalIdentityKeyPrivate []byte + LocalRatchetKey []byte + LocalRatchetKeyPrivate []byte + Sequence *uint32 + func (*SessionStructure_PendingKeyExchange) Descriptor() ([]byte, []int) + func (*SessionStructure_PendingKeyExchange) ProtoMessage() + func (x *SessionStructure_PendingKeyExchange) GetLocalBaseKey() []byte + func (x *SessionStructure_PendingKeyExchange) GetLocalBaseKeyPrivate() []byte + func (x *SessionStructure_PendingKeyExchange) GetLocalIdentityKey() []byte + func (x *SessionStructure_PendingKeyExchange) GetLocalIdentityKeyPrivate() []byte + func (x *SessionStructure_PendingKeyExchange) GetLocalRatchetKey() []byte + func (x *SessionStructure_PendingKeyExchange) GetLocalRatchetKeyPrivate() []byte + func (x *SessionStructure_PendingKeyExchange) GetSequence() uint32 + func (x *SessionStructure_PendingKeyExchange) ProtoReflect() protoreflect.Message + func (x *SessionStructure_PendingKeyExchange) Reset() + func (x *SessionStructure_PendingKeyExchange) String() string + type SessionStructure_PendingPreKey struct + BaseKey []byte + PreKeyId *uint32 + SignedPreKeyId *int32 + func (*SessionStructure_PendingPreKey) Descriptor() ([]byte, []int) + func (*SessionStructure_PendingPreKey) ProtoMessage() + func (x *SessionStructure_PendingPreKey) GetBaseKey() []byte + func (x *SessionStructure_PendingPreKey) GetPreKeyId() uint32 + func (x *SessionStructure_PendingPreKey) GetSignedPreKeyId() int32 + func (x *SessionStructure_PendingPreKey) ProtoReflect() protoreflect.Message + func (x *SessionStructure_PendingPreKey) Reset() + func (x *SessionStructure_PendingPreKey) String() string + type SignalMessage struct + Ciphertext []byte + Counter *uint32 + PreviousCounter *uint32 + RatchetKey []byte + func (*SignalMessage) Descriptor() ([]byte, []int) + func (*SignalMessage) ProtoMessage() + func (x *SignalMessage) GetCiphertext() []byte + func (x *SignalMessage) GetCounter() uint32 + func (x *SignalMessage) GetPreviousCounter() uint32 + func (x *SignalMessage) GetRatchetKey() []byte + func (x *SignalMessage) ProtoReflect() protoreflect.Message + func (x *SignalMessage) Reset() + func (x *SignalMessage) String() string + type SignedPreKeyRecordStructure struct + Id *uint32 + PrivateKey []byte + PublicKey []byte + Signature []byte + Timestamp *uint64 + func (*SignedPreKeyRecordStructure) Descriptor() ([]byte, []int) + func (*SignedPreKeyRecordStructure) ProtoMessage() + func (x *SignedPreKeyRecordStructure) GetId() uint32 + func (x *SignedPreKeyRecordStructure) GetPrivateKey() []byte + func (x *SignedPreKeyRecordStructure) GetPublicKey() []byte + func (x *SignedPreKeyRecordStructure) GetSignature() []byte + func (x *SignedPreKeyRecordStructure) GetTimestamp() uint64 + func (x *SignedPreKeyRecordStructure) ProtoReflect() protoreflect.Message + func (x *SignedPreKeyRecordStructure) Reset() + func (x *SignedPreKeyRecordStructure) String() string