test

package
v0.0.0-...-320257d Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenVotes

func GenVotes(c *qt.C, cens *Census, chainID, processID uint64, ratio int) []types.VotePackage

GenVotes generate the votes from the given Census

Types

type Census

type Census struct {
	Keys   Keys
	Census *census.Census
}

Census contains the test Keys and census.Census

func GenCensus

func GenCensus(c *qt.C, keys Keys) *Census

GenCensus returns a test Census containing the given Keys

type Keys

type Keys struct {
	PrivateKeys []babyjub.PrivateKey
	PublicKeys  []babyjub.PublicKey
	Weights     []*big.Int
}

Keys contains the test PrivateKeys and test PublicKeys

func GenUserKeys

func GenUserKeys(nUsers int) Keys

GenUserKeys returns n Keys

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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