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.
Click to show internal directories.
Click to hide internal directories.