@@ -158,13 +158,13 @@ class CiphertextBallotSelection(
158158 After construction, the `crypto_hash` field is populated automatically in the `__post_init__` cycle
159159
160160 A consumer of this object has the option to discard the `nonce` and/or discard the `proof`,
161- or keep both values.
162-
161+ or keep both values.
162+
163163 By discarding the `nonce`, the encrypted representation and `proof`
164164 can only be regenerated if the nonce was derived from the ballot's master nonce. If the nonce
165165 used for this selection is truly random, and it is discarded, then the proofs cannot be regenerated.
166166
167- By keeping the `nonce`, or deriving the selection nonce from the ballot nonce, an external system can
167+ By keeping the `nonce`, or deriving the selection nonce from the ballot nonce, an external system can
168168 regenerate the proofs on demand. This is useful for storage or memory constrained systems.
169169
170170 By keeping the `proof` the nonce is not required fotor verify the encrypted selection.
@@ -202,9 +202,9 @@ def is_valid_encryption(
202202 Given an encrypted BallotSelection, validates the encryption state against a specific seed hash and public key.
203203 Calling this function expects that the object is in a well-formed encrypted state
204204 with the elgamal encrypted `message` field populated along with the DisjunctiveChaumPedersenProof `proof` populated.
205- the ElementModQ `description_hash` and the ElementModQ `crypto_hash` are also checked.
205+ the ElementModQ `description_hash` and the ElementModQ `crypto_hash` are also checked.
206206
207- :param seed_hash: the hash of the SelectionDescription, or
207+ :param seed_hash: the hash of the SelectionDescription, or
208208 whatever `ElementModQ` was used to populate the `description_hash` field.
209209 :param elgamal_public_key: The election public key
210210 """
@@ -310,10 +310,10 @@ class PlaintextBallotContest(ElectionObjectBase):
310310 this class can be either a partial or a complete representation of a contest dataset. Specifically,
311311 a partial representation must include at a minimum the "affirmative" selections of a contest.
312312 A complete representation of a ballot must include both affirmative and negative selections of
313- the contest, AND the placeholder selections necessary to satisfy the ConstantChaumPedersen proof
313+ the contest, AND the placeholder selections necessary to satisfy the ConstantChaumPedersen proof
314314 in the CiphertextBallotContest.
315315
316- Typically partial contests are passed into Electionguard for memory constrained systems,
316+ Typically partial contests are passed into Electionguard for memory constrained systems,
317317 while complete contests are passed into ElectionGuard when running encryption on an existing dataset.
318318 """
319319
@@ -385,12 +385,12 @@ class CiphertextBallotContest(ElectionObjectBase, CryptoHashCheckable):
385385
386386 CiphertextBallotContest can only be a complete representation of a contest dataset. While
387387 PlaintextBallotContest supports a partial representation, a CiphertextBallotContest includes all data
388- necessary for a verifier to verify the contest. Specifically, it includes both explicit affirmative
388+ necessary for a verifier to verify the contest. Specifically, it includes both explicit affirmative
389389 and negative selections of the contest, as well as the placeholder selections that satisfy
390390 the ConstantChaumPedersen proof.
391391
392392 Similar to `CiphertextBallotSelection` the consuming application can choose to discard or keep both
393- the `nonce` and the `proof` in some circumstances. For deterministic nonce's derived from the
393+ the `nonce` and the `proof` in some circumstances. For deterministic nonce's derived from the
394394 master nonce, both values can be regenerated. If the `nonce` for this contest is completely random,
395395 then it is required in order to regenerate the proof.
396396 """
@@ -468,8 +468,8 @@ def is_valid_encryption(
468468 by verifying the accumulated sum of selections match the proof.
469469 Calling this function expects that the object is in a well-formed encrypted state
470470 with the `ballot_selections` populated with valid encrypted ballot selections,
471- the ElementModQ `description_hash`, the ElementModQ `crypto_hash`, and the ConstantChaumPedersenProof all populated.
472- Specifically, the seed hash in this context is the hash of the ContestDescription,
471+ the ElementModQ `description_hash`, the ElementModQ `crypto_hash`, and the ConstantChaumPedersenProof all populated.
472+ Specifically, the seed hash in this context is the hash of the ContestDescription,
473473 or whatever `ElementModQ` was used to populate the `description_hash` field.
474474 """
475475 if seed_hash != self .description_hash :
@@ -737,7 +737,7 @@ def is_valid_encryption(
737737 Calling this function expects that the object is in a well-formed encrypted state
738738 with the `contests` populated with valid encrypted ballot selections,
739739 and the ElementModQ `description_hash` also populated.
740- Specifically, the seed hash in this context is the hash of the Election Manifest,
740+ Specifically, the seed hash in this context is the hash of the Election Manifest,
741741 or whatever `ElementModQ` was used to populate the `description_hash` field.
742742 """
743743
0 commit comments