aggregatortest

package
v0.0.0-...-03d24db Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregateTestResults

type AggregateTestResults struct {
	InputsHash            *big.Int
	ProcessId             *big.Int
	CensusRoot            *big.Int
	EncryptionPubKey      circuits.EncryptionKey[*big.Int]
	Nullifiers            []*big.Int
	Commitments           []*big.Int
	Addresses             []*big.Int
	EncryptedBallots      []elgamal.Ballot
	PlainEncryptedBallots []*big.Int
}

AggregateTestResults struct includes relevant data after AggregateCircuit inputs generation, including the encrypted ballots in both formats: matrix and plain (for hashing)

func AggregarorInputsForTest

func AggregarorInputsForTest(processId []byte, nValidVoters int, persist bool) (
	AggregateTestResults, aggregator.AggregatorCircuit, aggregator.AggregatorCircuit, error,
)

AggregarorInputsForTest returns the AggregateTestResults, the placeholder and the assigments of a AggregatorCircuit for the processId provided generating nValidVoters. If something fails it returns an error.

Jump to

Keyboard shortcuts

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