Skip to content

Commit

Permalink
Fix deref breakage with nightly-2020-10-06
Browse files Browse the repository at this point in the history
Fixes the following error:
  cannot multiply-assign `<E as Engine>::Fr` by `&&<E as Engine>::Fr`

I think this is related to:
  rust-lang/rust#77638
  • Loading branch information
str4d committed Oct 30, 2020
1 parent 0f2244f commit a5ff6f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/groth16/generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,8 @@ where
*b_g2 = g2_wnaf.scalar(&bt);
}

at.mul_assign(&beta);
bt.mul_assign(&alpha);
at *= beta;
bt *= alpha;

let mut e = at;
e.add_assign(&bt);
Expand Down

0 comments on commit a5ff6f5

Please sign in to comment.