You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The nonce_seed value comes from a parameter to the function.
The ElectionGuard spec says: "For each option listed in the election manifest file [where an "option" here refers to a contest selection], the nonce used to encrypt that option is derived from the contest nonce ($R_C$) and the selection label for that option ($L_S) as $R = H(L_S, R_C)$."
So, the code that derives nonce_sequence is fine. But the next two lines are not compliant with the spec, because the whole sequence_order part is (or should be) subsumed in the selection_description_hash.
Instead, the last two lines should read something more like:
This distinction is important for anybody trying to implement the spec correctly. It would be helpful if the spec were more clear on nonce sequences. Right now it's relatively silent on this.
Expected Behavior
No response
Steps To Reproduce
No response
Environment
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered:
thank you @danwallach this is an important issue we plan to address in the 2.0 specification when we want to support ballot expansion / rehydration use cases, which we hope to deliver in a very early release
Is there an existing issue for this?
Current Behavior
encrypt_selection
does this:The
nonce_seed
value comes from a parameter to the function.The ElectionGuard spec says: "For each option listed in the election manifest file [where an "option" here refers to a contest selection], the nonce used to encrypt that option is derived from the contest nonce ($R_C$ ) and the selection label for that option ($L_S) as $R = H(L_S, R_C)$ ."
So, the code that derives
nonce_sequence
is fine. But the next two lines are not compliant with the spec, because the wholesequence_order
part is (or should be) subsumed in theselection_description_hash
.Instead, the last two lines should read something more like:
This distinction is important for anybody trying to implement the spec correctly. It would be helpful if the spec were more clear on nonce sequences. Right now it's relatively silent on this.
Expected Behavior
No response
Steps To Reproduce
No response
Environment
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: