fix warning in secret-store test (#9074)
This commit is contained in:
parent
91122d9193
commit
9f1e08663d
@ -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();
|
let publics: Vec<_> = (0..n).map(|i| public_values_generation(t, &derived_point, &polynoms1[i], &polynoms2[i]).unwrap()).collect();
|
||||||
|
|
||||||
// keys verification
|
// keys verification
|
||||||
(0..n).map(|i| (0..n).map(|j| if i != j {
|
(0..n).for_each(|i| {
|
||||||
assert!(keys_verification(t, &derived_point, &id_numbers[i], &secrets1[j][i], &secrets2[j][i], &publics[j]).unwrap());
|
(0..n)
|
||||||
}).collect::<Vec<_>>()).collect::<Vec<_>>();
|
.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
|
// data, generated during keys generation
|
||||||
let public_shares: Vec<_> = (0..n).map(|i| compute_public_share(&polynoms1[i][0]).unwrap()).collect();
|
let public_shares: Vec<_> = (0..n).map(|i| compute_public_share(&polynoms1[i][0]).unwrap()).collect();
|
||||||
|
Loading…
Reference in New Issue
Block a user