config

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

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

type ReplicaInfo

type ReplicaInfo struct {
	ID      hotstuff.ID
	Address string
	PubKey  *ecdsa.PublicKey
}

ReplicaInfo holds information about a replica

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL