voteverifiertest

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VoteVerifierInputsForTest

func VoteVerifierInputsForTest(
	t *testing.T,
	votersData []VoterTestData,
	processID types.ProcessID,
	censusOrigin types.CensusOrigin,
) (
	circuitstest.VoteVerifierTestResults,
	voteverifier.VerifyVoteCircuit,
	[]voteverifier.VerifyVoteCircuit,
)

VoteVerifierInputsForTest returns the VoteVerifierTestResults, the placeholder and the assignments for a VerifyVoteCircuit including the provided voters. If processID is nil, it will be randomly generated. Uses quicktest assertions instead of returning errors.

Types

type VoterTestData

type VoterTestData struct {
	PrivKey *ethereum.Signer
	PubKey  ecdsa.PublicKey
	Address common.Address
}

VoterTestData struct includes the information required to generate the test inputs for the VerifyVoteCircuit.

Jump to

Keyboard shortcuts

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