package
10.9.0+incompatible
Repository: https://github.com/status-im/status-go.git
Documentation: pkg.go.dev

# README

v1 protocol package folder

This folder contains only data types mentioned in the specification and required for its implementation.

# Functions

CalcMessageClock calculates a new clock value for Message.
CreatePairMessage creates a PairMessage which is used to pair devices.
DecodePairMessage decodes a raw payload to Message struct.
EncodeMembershipUpdateMessage encodes a MembershipUpdateMessage using protobuf serialization.
EncodePairMessage encodes a PairMessage using Transit serialization.
No description provided by the author
No description provided by the author
No description provided by the author
MessageID calculates the messageID from author's compressed public key and not encrypted but encoded payload.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewMessageDecoder returns a new Transit decoder that can deserialize Message structs.
NewMessageEncoder returns a new Transit encoder that can encode Message values.
No description provided by the author
TimestampInMsFromTime returns a TimestampInMs from a time.Time instance.
WrapMessageV1 wraps a payload into a protobuf message and signs it if an identity is provided.

# Variables

ErrInvalidDecodedValue means that the decoded message is of wrong type.

# Structs

ApplicationLayer is the topmost layer and represents the application message.
EncryptionLayer handles optional encryption.
No description provided by the author
MembershipUpdateEvent contains an event information.
MembershipUpdateMessage is a message used to propagate information about group membership changes.
PairMessage contains all message details.
StatusMessage encapsulates all layers of the protocol.
TransportLayer is the lowest layer and represents waku message.