-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added range Chaum-Pedersen proofs and eliminated placeholders (#761)
* added range Chaum-Pedersen proofs and basic unit tests * added default limit value 1 for range proofs; added remaining unit tests * temporarily remove outdated make sample-data * resolved slight typing issues and fixed black formatting * fixed typos * changed commitment type to OrderedDict from tuple to prepare for serialization; fixed bug with determining limit of range proofs * replaced disjunctive CP proofs with range versions in property tests * amended data type of range proof commitments from list of (ordered) dictionaries to (flattened) list; all tests now pass, and disjunctive Chaum-Pedersen proofs are now unused * tweaked description referring to range proofs instead of disjunctive * Corrected and improved ProofUsage enum * better distinguish the types of Chaum-Pedersen proofs, explicitly referencing the specification for clarity of use * refactored Chaum-Pedersen proofs to unify parameter organization; removed placeholders * removed unnecessary calls 0-power of group generator in range Chaum-Pedersen proof * cherry-pick ed9e8d3 from no-placeholders branch * enabled cumulative voting; refactored and corrected number_elected and votes_allowed * added end-to-end integration testing for cumulative voting * removed placeholders; rebased from old branch * added cumulative voting system; rebased from old branch * removed selection_limit attribute from PlaintextBallotContest * added comment clarifying role of selection limit in ballot property test * better distinguish the types of Chaum-Pedersen proofs, explicitly referencing the specification for clarity of use * refactored Chaum-Pedersen proofs to unify parameter organization; removed placeholders * removed placeholders; rebased from old branch * enabled cumulative voting; refactored and corrected number_elected and votes_allowed * added end-to-end integration testing for cumulative voting * added cumulative voting system; rebased from old branch * removed selection_limit attribute from PlaintextBallotContest * added comment clarifying role of selection limit in ballot property test * resolved merge conflict issues * fixed merge conflicts * fixed merge conflicts * removed selection_limit attribute from PlaintextBallotContest * amended merge conflict errors; make runs properly now
- Loading branch information
Showing
32 changed files
with
1,153 additions
and
851 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"spec_version": "v0.95", | ||
"election_scope_id": "franklin-minimal-referendum-manifest", | ||
"type": "general", | ||
"geopolitical_units": [ | ||
{ | ||
"object_id": "franklin-county", | ||
"name": "Franklin County", | ||
"type": "municipality" | ||
} | ||
], | ||
"parties": [ | ||
{ | ||
"object_id": "N/A" | ||
} | ||
], | ||
"candidates": [ | ||
{ | ||
"object_id": "referendum-pineapple-affirmative" | ||
}, | ||
{ | ||
"object_id": "referendum-pineapple-negative" | ||
} | ||
], | ||
"contests": [ | ||
{ | ||
"object_id": "referendum-pineapple", | ||
"name": "Referendum for Banning Pineapple on Pizza", | ||
"sequence_order": 0, | ||
"vote_variation": "one_of_m", | ||
"electoral_district_id": "franklin-county", | ||
"votes_allowed": 1, | ||
"ballot_selections": [ | ||
{ | ||
"object_id": "referendum-pineapple-affirmative-selection", | ||
"sequence_order": 0, | ||
"candidate_id": "referendum-pineapple-affirmative" | ||
}, | ||
{ | ||
"object_id": "referendum-pineapple-negative-selection", | ||
"sequence_order": 1, | ||
"candidate_id": "referendum-pineapple-negative" | ||
} | ||
] | ||
} | ||
], | ||
"ballot_styles": [ | ||
{ | ||
"object_id": "ballot-style-01", | ||
"geopolitical_unit_ids": ["franklin-county"] | ||
} | ||
], | ||
"name": { | ||
"text": [ | ||
{ | ||
"language": "en", | ||
"value": "Franklin County Minimal General Election March 2020" | ||
}, | ||
{ | ||
"language": "es", | ||
"value": "Elecciones generales mínimas del condado de Franklin marzo de 2020" | ||
} | ||
] | ||
}, | ||
"start_date": "2020-03-01T08:00:00-05:00", | ||
"end_date": "2020-03-03T19:00:00-05:00" | ||
} |
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
Oops, something went wrong.