voter

package
v0.0.0-...-68fb9df Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MaybeProgress

func MaybeProgress(n int) *maybeProgress

func Register

func Register(rootCmd *cobra.Command)

Register the election setup command

Types

type Ballot

type Ballot [5]int

our simulated election has 5 candidates.

type Voter

type Voter struct {
	ID      string
	Hash    string
	KeyPair *elgamal.KeyPair
	Ballot  [5]int
}

Jump to

Keyboard shortcuts

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