Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
fix warning in secret-store test (#9074)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasad1 authored and 5chdn committed Jul 9, 2018
1 parent 91122d9 commit 9f1e086
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions secret_store/src/key_server_cluster/math.rs
Original file line number Diff line number Diff line change
Expand Up @@ -587,9 +587,13 @@ pub mod tests {
let publics: Vec<_> = (0..n).map(|i| public_values_generation(t, &derived_point, &polynoms1[i], &polynoms2[i]).unwrap()).collect();

// keys verification
(0..n).map(|i| (0..n).map(|j| if i != j {
assert!(keys_verification(t, &derived_point, &id_numbers[i], &secrets1[j][i], &secrets2[j][i], &publics[j]).unwrap());
}).collect::<Vec<_>>()).collect::<Vec<_>>();
(0..n).for_each(|i| {
(0..n)
.filter(|&j| i != j)
.for_each(|j| {
assert!(keys_verification(t, &derived_point, &id_numbers[i], &secrets1[j][i], &secrets2[j][i], &publics[j]).unwrap());
})
});

// data, generated during keys generation
let public_shares: Vec<_> = (0..n).map(|i| compute_public_share(&polynoms1[i][0]).unwrap()).collect();
Expand Down

0 comments on commit 9f1e086

Please sign in to comment.