Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateWitnesses ¶
func GenerateWitnesses(o *state.State) (*statetransition.Circuit, error)
Types ¶
type StateTransitionTestResults ¶
type StateTransitionTestResults struct { 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 }
StateTransitionTestResults struct includes relevant data after StateTransitionCircuit inputs generation
func StateTransitionInputsForTest ¶
func StateTransitionInputsForTest(processId []byte, nValidVoters int) ( *StateTransitionTestResults, *statetransition.Circuit, *statetransition.Circuit, error, )
StateTransitionInputsForTest returns the StateTransitionTestResults, the placeholder and the assigments of a StateTransitionCircuit for the processId provided generating nValidVoters. If something fails it returns an error.
Click to show internal directories.
Click to hide internal directories.