Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VoteVerifierTestResults ¶
type VoteVerifierTestResults struct { InputsHashes []*big.Int EncryptionPubKey circuits.EncryptionKey[*big.Int] Addresses []*big.Int ProcessID *big.Int CensusRoot *big.Int Nullifiers []*big.Int Commitments []*big.Int EncryptedBallots []elgamal.Ballot }
VoteVerifierTestResults struct includes relevant data after VerifyVoteCircuit inputs generation
func VoteVerifierInputsForTest ¶
func VoteVerifierInputsForTest(votersData []VoterTestData, processId []byte) ( VoteVerifierTestResults, voteverifier.VerifyVoteCircuit, []voteverifier.VerifyVoteCircuit, error, )
VoteVerifierInputsForTest returns the VoteVerifierTestResults, the placeholder and the assigments for a VerifyVoteCircuit including the provided voters. If processId is nil, it will be randomly generated. If something fails it returns an error.
type VoterTestData ¶
type VoterTestData struct { PrivKey *ecdsa.PrivateKey PubKey ecdsa.PublicKey Address common.Address }
VoterTestData struct includes the information required to generate the test inputs for the VerifyVoteCircuit.
Click to show internal directories.
Click to hide internal directories.