Documentation
¶
Index ¶
- Constants
- func BallotMode() spec.BallotMode
- func BallotModePacked() *big.Int
- func DeterministicAddress(n uint64) common.Address
- func DeterministicK(processID types.ProcessID, nValidVoters int) *big.Int
- func DeterministicProcessID(n uint64) types.ProcessID
- func DeterministicSeed(processID types.ProcessID, index int) int64
- func DeterministicStateRoot(n uint64) *types.BigInt
- func FixedProcessID() types.ProcessID
- func FixedStateRoot() *types.BigInt
- 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, types.EncryptionKey)
- func RandomEncryptionPubKey() types.EncryptionKey
- func RandomProcess(processID types.ProcessID) *types.Process
- func RandomProcessID() types.ProcessID
- func RandomStateRoot() *types.BigInt
- func RandomVoteID() types.VoteID
- func RandomVoteIDs(n int) []types.VoteID
- func SepoliaChainID() uint32
Constants ¶
View Source
const (
Weight = 42
)
Variables ¶
This section is empty.
Functions ¶
func BallotMode ¶
func BallotMode() spec.BallotMode
func BallotModePacked ¶ added in v0.0.2
func DeterministicAddress ¶
func DeterministicK ¶ added in v0.0.4
DeterministicK returns a deterministic big.Int value based on a ProcessID and voter count.
func DeterministicProcessID ¶
DeterministicProcessID is a deterministic ProcessID used for testing purposes.
func DeterministicSeed ¶ added in v0.0.4
DeterministicSeed returns a deterministic seed based on a ProcessID and index.
func DeterministicStateRoot ¶
func FixedProcessID ¶
FixedProcessID should be used by circuit tests that need reproducible process data.
func FixedStateRoot ¶ added in v0.0.2
func GenDeterministicBallotFields ¶
func GenDeterministicBallotFields(seed int64) [params.FieldsPerBallot]*types.BigInt
GenDeterministicBallotFields generates a list of deterministic fields based on the provided seed for reproducible testing.
func RandomAddress ¶
func RandomCensus ¶
func RandomCensus(origin types.CensusOrigin) *types.Census
func RandomCensusRoot ¶
func RandomEncryptionKeys ¶
func RandomEncryptionKeys() (babyjub.PrivateKey, types.EncryptionKey)
func RandomEncryptionPubKey ¶
func RandomEncryptionPubKey() types.EncryptionKey
func RandomProcessID ¶
func RandomStateRoot ¶
func RandomVoteID ¶
func RandomVoteIDs ¶ added in v0.0.2
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.