Documentation
¶
Overview ¶
Package config contains structs that are useful for initializing hotstuff.
These structs do not implement the hotstuff.Replica or hotstuff.Config interfaces, but do contain more or less the same information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReplicaConfig ¶
type ReplicaConfig struct { ID hotstuff.ID PrivateKey *ecdsa.PrivateKey Creds credentials.TransportCredentials Replicas map[hotstuff.ID]*ReplicaInfo }
ReplicaConfig holds information needed by a replica.
func NewConfig ¶
func NewConfig(id hotstuff.ID, privateKey *ecdsa.PrivateKey, creds credentials.TransportCredentials) *ReplicaConfig
NewConfig returns a new ReplicaConfig instance.
Click to show internal directories.
Click to hide internal directories.