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
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.