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

# README

Waku Common

See here

# Functions

BytesToTopic converts from the byte array representation of a topic into the TopicType type.
BytesToUintBigEndian converts the slice to 64-bit unsigned integer.
BytesToUintLittleEndian converts the slice to 64-bit unsigned integer.
No description provided by the author
ContainsOnlyZeros checks if the data contain only zeros.
No description provided by the author
GenerateRandomID generates a random string, which is then returned to be used as a key id.
GenerateSecureRandomData generates random data where extra security is required.
IsPubKeyEqual checks that two public keys are equal.
NewFilters returns a newly created filter collection.
NewMemoryMessageStore returns pointer to an instance of the MemoryMessageStore.
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
ValidateDataIntegrity returns false if the data have the wrong or contains all zeros, which is the simplest and the most common bug.
ValidatePublicKey checks the format of the given public key.

# Constants

in bytes.
DefaultMaximumMessageSize is 1mb.
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
No description provided by the author
No description provided by the author
No description provided by the author
EventBatchAcknowledged is sent when batch of envelopes was acknowledged by a peer.
EventEnvelopeAvailable fires when envelop is available for filters.
EventEnvelopeExpired fires when envelop expired.
EventEnvelopeReceived is sent once envelope was received from a peer.
EventEnvelopeSent fires when envelope was sent to a peer.
in bytes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
in bytes.

# Variables

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

# Structs

DialError represents a single dial error with its multiaddr and error message.
EnvelopeError code and optional description of the error.
EnvelopeEvent represents an envelope event.
Filter represents a Waku message filter.
Filters represents a collection of filters.
No description provided by the author
MemoryMessageStore represents messages stored in a memory hash table.
MessageParams specifies the exact way a message should be wrapped into an Envelope.
MessagesResponse sent as a response after processing batch of envelopes.
ReceivedMessage represents a data packet to be received through the WakuV2 protocol and successfully decrypted.
No description provided by the author

# Interfaces

MessageStore defines interface for temporary message store.

# Type aliases

No description provided by the author
DialErrorType represents the type of dial error.
EventType used to define known waku events.
No description provided by the author
MessageType represents where this message comes from.
No description provided by the author
No description provided by the author
TopicType represents a cryptographically secure, probabilistic partial classifications of a message, determined as the first (leftmost) 4 bytes of the SHA3 hash of some arbitrary data given by the original author of the message.