We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4642e6e commit 975e5dcCopy full SHA for 975e5dc
rust-toolchain
@@ -1 +1 @@
1
-nightly-2021-06-17
+nightly-2022-07-28
solution/anonymous_ciphertext_voting/src/coordinator.rs
@@ -452,7 +452,7 @@ pub fn decrypt_unlisted_candidate_ballot(
452
)?;
453
let target_total = c1 - blinding_c2_sum;
454
// decrypt the ballot value
455
- for i in 0..max_vote_limit {
+ for i in 0..=max_vote_limit {
456
let try_num = Scalar::from(i as u64);
457
if !target_total.eq(&(*BASEPOINT_G1 * try_num)) {
458
continue;
0 commit comments