testutil

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncryptionKeyAsECCPoint

func EncryptionKeyAsECCPoint(s *state.State) ecc.Point

EncryptionKeyAsECCPoint returns the encryption key of the state as an ecc.Point

func NewRandomState

func NewRandomState(t *testing.T, origin types.CensusOrigin) *state.State

func NewStateForTest

func NewStateForTest(t *testing.T,
	processID types.ProcessID,
	ballotMode *big.Int,
	censusOrigin types.CensusOrigin,
	encryptionKey types.EncryptionKey,
) *state.State

func NewVoteForTest

func NewVoteForTest(publicKey ecc.Point, voterIndex uint64, value int) *state.Vote

func NewVotesForTest

func NewVotesForTest(publicKey ecc.Point, numVotes uint64, value int) []*state.Vote

Types

This section is empty.

Jump to

Keyboard shortcuts

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