Documentation
¶
Index ¶
- Constants
- func BallotMode() circuits.BallotMode[*big.Int]
- func BallotModeEmulated() circuits.BallotMode[emulated.Element[sw_bn254.ScalarField]]
- func BallotModeInternal() *types.BallotMode
- func BallotModeVar() circuits.BallotMode[frontend.Variable]
- func DeterministicAddress(n uint64) common.Address
- func DeterministicProcessID(n uint64) types.ProcessID
- func DeterministicStateRoot(n uint64) *types.BigInt
- func FixedProcessID() types.ProcessID
- func GenDeterministicBallotFields(seed int64) [params.FieldsPerBallot]*types.BigInt
- func RandomAddress() common.Address
- func RandomCensus(origin types.CensusOrigin) *types.Census
- func RandomCensusRoot() *big.Int
- func RandomEncryptionKeys() (babyjub.PrivateKey, circuits.EncryptionKey[*big.Int])
- func RandomEncryptionPubKey() circuits.EncryptionKey[*big.Int]
- func RandomProcessID() types.ProcessID
- func RandomStateRoot() *types.BigInt
- func RandomVoteID() *big.Int
- func SepoliaChainID() uint32
- func StateRoot() *types.BigInt
Constants ¶
View Source
const (
Weight = 42
)
Variables ¶
This section is empty.
Functions ¶
func BallotMode ¶
func BallotMode() circuits.BallotMode[*big.Int]
func BallotModeEmulated ¶
func BallotModeEmulated() circuits.BallotMode[emulated.Element[sw_bn254.ScalarField]]
func BallotModeInternal ¶
func BallotModeInternal() *types.BallotMode
func BallotModeVar ¶
func BallotModeVar() circuits.BallotMode[frontend.Variable]
func DeterministicAddress ¶
func DeterministicProcessID ¶
DeterministicProcessID is a deterministic ProcessID used for testing purposes.
func DeterministicStateRoot ¶
func FixedProcessID ¶
FixedProcessID should be used by all circuit tests to ensure consistent caching and proof reuse between tests.
func GenDeterministicBallotFields ¶
func GenDeterministicBallotFields(seed int64) [params.FieldsPerBallot]*types.BigInt
GenDeterministicBallotFields generates a list of n deterministic fields based on the provided seed for consistent testing and caching.
func RandomAddress ¶
func RandomCensus ¶
func RandomCensus(origin types.CensusOrigin) *types.Census
func RandomCensusRoot ¶
func RandomEncryptionKeys ¶
func RandomEncryptionKeys() (babyjub.PrivateKey, circuits.EncryptionKey[*big.Int])
func RandomEncryptionPubKey ¶
func RandomEncryptionPubKey() circuits.EncryptionKey[*big.Int]
func RandomProcessID ¶
func RandomStateRoot ¶
func RandomVoteID ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.