Commit d9d4b52
committed
Key Ceremony Update (#349)
* 🐛. Exponent modifier should not be zero
The exponent modifier should never be allowed to be zero to compute a polynomial coordinate.
In the same way a sequence_order should never be zero.
* Refactor Auxiliary Key
* Refactor Elgamal Key
* Refactor ElectionPolynomial
* Refactor Key Ceremony and Election Keys
- Remove GuardianKeyPair for migration to stateful class
- Migration of coefficient commitments and proofs into electionpublickey
- Removal of hash coefficient commitment specialty method
- Update tests
* Update Publish and tests
* Update Guardian to Stateless
* Functional Key Ceremony Test
* Update Decryption
* ❓Remove optional on store
Optional on store shouldn't exist. This returns a list.
* Refactor Guardian
- Remove references to manually doing recovery key
- Ensure using new naming for election public key
- Correctly handle publish
- Change tests to rely on what can possibly be an outside verifier not necessarily a guardian.
* Refactor Key Ceremony
- Ensure key owner id and sequence order passed into all guardian key generation
* Implement Key Ceremony Helper
Key Ceremony Helper is both an example and a test implementation to perform the key ceremony. The idea is to provide an example and simply long testing sections.
* Updates to Functional Key Ceremony
* Add identity encrypt to ElectionGuard Test
Identity encrypt to the mock library to reduce the recoding of this function
* Update decryption tests
* Update Election Builder
* Update Key Ceremony Mediator
* Add Changes into Election Factory
* Update Decryption Mediator
* Update End to End Election Tests
Update the end to end election to demonstrate the entire election process including the new key ceremony changes.
* Review Adjustments
- Add property descriptions
- Add method descriptions
* Remove sequence order that is created with zero
* Update Ballot Box to use BALLOT_ID
* 🐛 Fix decryption mediator for ballots
* ✅ Add Decryption Tests
- Migrate some tests to decrypt_with_shares
- Add test_decryption tests
- Add Decryption Mediator tests1 parent 71e8150 commit d9d4b52
26 files changed
Lines changed: 2770 additions & 1666 deletions
File tree
- src
- electionguardtest
- electionguard
- tests
- integration
- property
- unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | 105 | | |
107 | 106 | | |
108 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
17 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
18 | 29 | | |
19 | | - | |
20 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
21 | 33 | | |
22 | 34 | | |
23 | 35 | | |
24 | | - | |
| 36 | + | |
25 | 37 | | |
26 | 38 | | |
27 | 39 | | |
28 | 40 | | |
29 | 41 | | |
30 | 42 | | |
31 | 43 | | |
32 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
33 | 48 | | |
34 | | - | |
| 49 | + | |
35 | 50 | | |
36 | 51 | | |
37 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
38 | 57 | | |
39 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
40 | 61 | | |
41 | 62 | | |
42 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
43 | 66 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
86 | | - | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments