package
0.4.0
Repository: https://github.com/relab/hotstuff.git
Documentation: pkg.go.dev

# Functions

ConfigAddReplica adds a mock replica to a mock configuration.
CreateBuilders creates n builders with default consensus.
CreateMockConfigurationWithReplicas creates a configuration with n replicas.
CreateMockReplica returns a mock of a consensus.Replica.
CreatePC creates a partial certificate using the given signer.
CreatePCs creates one partial certificate using each of the given signers.
CreateQC creates a QC using the given signers.
CreateSignatures creates partial certificates from multiple signers.
CreateTC generates a TC using the given signers.
CreateTCPListener creates a net.Listener on a random port.
CreateTimeouts creates a set of TimeoutMsg messages from the given signers.
FixedTimeout returns an ExponentialTimeout with a max exponent of 0.
GenerateBLS12Key generates a BLS12-381 private key for use in tests.
GenerateECDSAKey generates an ECDSA private key for use in tests.
GenerateKeys generates n keys.
NewLeaderRotation returns a leader rotation implementation that will return leaders in the specified order.
NewProposeMsg wraps a new block in a ProposeMsg.
Sign creates a signature using the given signer.
TestModules returns a builder containing default modules for testing.

# Type aliases

BuilderList is a helper type to perform actions on a set of builders.
HotStuffList is a helper type to perform actions on a set of HotStuff instances.