config

package
v0.2.23-beta.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	N               int           `mapstructure:"hare-committee-size"`   // total number of active parties
	F               int           `mapstructure:"hare-max-adversaries"`  // number of dishonest parties
	RoundDuration   time.Duration `mapstructure:"hare-round-duration"`   // the duration of a single round
	WakeupDelta     time.Duration `mapstructure:"hare-wakeup-delta"`     // the wakeup delta after tick
	ExpectedLeaders int           `mapstructure:"hare-exp-leaders"`      // the expected number of leaders
	LimitIterations int           `mapstructure:"hare-limit-iterations"` // limit on number of iterations
	LimitConcurrent int           `mapstructure:"hare-limit-concurrent"` // limit number of concurrent CPs

	Hdist uint32
}

Config is the configuration of the Hare.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig returns the default configuration for the hare.

Jump to

Keyboard shortcuts

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