params

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Number of field elements stored in a single data blob
	BlobTxFieldElementsPerBlob = gethparams.BlobTxFieldElementsPerBlob
	// Size in bytes of a field element
	BlobTxBytesPerFieldElement = gethparams.BlobTxBytesPerFieldElement
)
View Source
const (
	// StateTreeMaxLevels is the maximum number of levels in the state merkle tree.
	StateTreeMaxLevels = 64
	// CensusKeyMaxLen is the maximum length of a census key in bytes.
	CensusKeyMaxLen = 20
	// StateKeyMaxLen is the maximum length of a state key in bytes.
	StateKeyMaxLen = StateTreeMaxLevels / 8
	// VoteIDLen is the length of the vote ID in bytes (this must match circom circuit)
	VoteIDLen = 20
	// FieldsPerBallot is the number of fields in a ballot.
	FieldsPerBallot = 8
	// MaxValuePerBallotField is the maximum value per field in a ballot.
	MaxValuePerBallotField = 2 << 16
	// VotesPerBatch is the number of votes per zkSnark batch.
	VotesPerBatch = 60
)

used across different circuits

View Source
const (
	BallotProofCurve     = ecc.BN254     // ecc.BN254
	VoteVerifierCurve    = ecc.BLS12_377 // ecc.BLS12_377
	AggregatorCurve      = ecc.BW6_761   // ecc.BW6_761
	StateTransitionCurve = ecc.BN254     // ecc.BN254
	ResultsVerifierCurve = ecc.BN254     // ecc.BN254
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL