-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new struct to group some inner circuits inputs, BigToFF moved to ecc …
…package, error wrapping
- Loading branch information
1 parent
eb0e5ce
commit 117a671
Showing
11 changed files
with
151 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package circuits | ||
|
||
// BallotMode is a struct that contains the common inputs for all the voters. | ||
// The values of this struct should be the same for all the voters in the same | ||
// process. Is a generic struct that can be used with any type of circuit input. | ||
type BallotMode[T any] struct { | ||
MaxCount T | ||
ForceUniqueness T | ||
MaxValue T | ||
MinValue T | ||
MaxTotalCost T | ||
MinTotalCost T | ||
CostExp T | ||
CostFromWeight T | ||
EncryptionPubKey [2]T | ||
} |
Oops, something went wrong.