package
0.0.0-20220616152218-3da4c06c590a
Repository: https://github.com/astra-net/astra-network.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

ConstructConsensusMessage creates a message with the payload and returns as byte array.
GetConsensusMessagePayload gets the consensus message payload from the p2p message content.
GetMessageCategory gets the message category from the p2p message content.
GetMessagePayload gets the node message payload from the p2p message content.
GetMessageType gets the message type from the p2p message content.

# Constants

deprecated.
Consensus and other message categories.
not used.
MessageCategoryBytes is the number of bytes message category takes.
MessageTypeBytes is the number of bytes message type takes.
Consensus and other message categories.
ProtocolVersion is a constant defined as the version of the Astra protocol.

# Type aliases

MessageCategory defines the message category enum.