Latest clippy

This commit is contained in:
Luke Parker
2023-08-01 02:49:31 -04:00
parent c338b92067
commit 53d86e2a29
12 changed files with 21 additions and 13 deletions

View File

@@ -255,7 +255,7 @@ impl<C: Curve> BindingFactor<C> {
self.0.insert(i, IndividualBinding { commitments, binding_factors: None });
}
pub(crate) fn calculate_binding_factors<T: Clone + Transcript>(&mut self, transcript: &mut T) {
pub(crate) fn calculate_binding_factors<T: Clone + Transcript>(&mut self, transcript: &T) {
for (l, binding) in self.0.iter_mut() {
let mut transcript = transcript.clone();
transcript.append_message(b"participant", C::F::from(u64::from(u16::from(*l))).to_repr());

View File

@@ -388,7 +388,7 @@ impl<C: Curve, A: Algorithm<C>> SignMachine<A::Signature> for AlgorithmSignMachi
);
// Generate the per-signer binding factors
B.calculate_binding_factors(&mut rho_transcript);
B.calculate_binding_factors(&rho_transcript);
// Merge the rho transcript back into the global one to ensure its advanced, while
// simultaneously committing to everything