package
0.3.13-beta.0
Repository: https://github.com/spacemeshos/go-spacemesh.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
nolint.
Package mocks is a generated GoMock package.

# Functions

MessageFromBuffer builds an Hare message from the provided bytes buffer.
New returns a new Hare struct.
NewDefaultEmptySet creates an empty set with the default size.
No description provided by the author
NewEmptySet creates an empty set with the provided size.
NewRefCountTracker creates a new reference count tracker.
NewSet creates a set from the provided array of values.
NewSetFromValues creates a set of the provided values.
NewSimpleRoundClock returns a new SimpleRoundClock, given the provided configuration.

# Constants

RoundsPerIteration is the number of rounds per iteration in the hare protocol.
-2.

# Variables

ErrTooLate means that the consensus was terminated too late.

# Structs

AggregatedMessages is a collection of messages.
Broker is the dispatcher of incoming Hare messages.
Certificate is a collection of messages and the set of values.
No description provided by the author
No description provided by the author
No description provided by the author
Hare is the orchestrator that starts new consensus processes and collects their output.
InnerMessage is the actual set of fields that describe a message in the Hare protocol.
LayerOutput is the output of each hare consensus process.
No description provided by the author
RefCountTracker tracks the number of references of any object id.
Set represents a unique set of values.
SimpleRoundClock is a simple Hare-round clock.
State holds the current state of the consensus process (aka the participant).

# Interfaces

Consensus represents an item that acts like a consensus process.
LayerClock provides a timer for the start of a given layer, as well as the current layer and allows converting a layer number to a clock time.
Rolacle is the roles oracle provider.
RoundClock is a timer interface.

# Type aliases

MessageType is a message type.
Opt for configuring beacon protocol.