mirror of
https://github.com/arnaucube/ark-r1cs-std.git
synced 2026-01-10 16:01:28 +01:00
Use built-in iteration functions more
This commit is contained in:
committed by
Pratyush Mishra
parent
c42c7dd98a
commit
53a51eb4dc
@@ -144,9 +144,9 @@ impl<G: Group, W: PedersenWindow> FixedLengthCRH for BoweHopwoodPedersenCRH<G, W
|
||||
}
|
||||
encoded
|
||||
})
|
||||
.reduce(|| G::zero(), |a, b| a + &b)
|
||||
.reduce(G::zero, |a, b| a + &b)
|
||||
})
|
||||
.reduce(|| G::zero(), |a, b| a + &b);
|
||||
.reduce(G::zero, |a, b| a + &b);
|
||||
end_timer!(eval_time);
|
||||
|
||||
Ok(result)
|
||||
|
||||
@@ -111,7 +111,7 @@ impl<G: Group, W: PedersenWindow> FixedLengthCRH for PedersenCRH<G, W> {
|
||||
}
|
||||
encoded
|
||||
})
|
||||
.reduce(|| G::zero(), |a, b| a + &b);
|
||||
.reduce(G::zero, |a, b| a + &b);
|
||||
end_timer!(eval_time);
|
||||
|
||||
Ok(result)
|
||||
|
||||
Reference in New Issue
Block a user