Skip to content

Commit

Permalink
fixes writing of beta_g2
Browse files Browse the repository at this point in the history
  • Loading branch information
kobigurk committed Sep 12, 2019
1 parent a746f03 commit 9af1e2a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions powersoftau/src/batched_accumulator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -922,9 +922,7 @@ impl<E:Engine, P: PowersOfTauParameters> BachedAccumulator<E, P> {
batch_exp::<E, _>(&mut accumulator.tau_powers_g2, &taupowers[0..], None);
batch_exp::<E, _>(&mut accumulator.alpha_tau_powers_g1, &taupowers[0..], Some(&key.alpha));
batch_exp::<E, _>(&mut accumulator.beta_tau_powers_g1, &taupowers[0..], Some(&key.beta));
if start == 0 {
accumulator.beta_g2 = accumulator.beta_g2.mul(key.beta).into_affine();
}
accumulator.beta_g2 = accumulator.beta_g2.mul(key.beta).into_affine();
assert!(!accumulator.beta_g2.is_zero(), "your contribution happed to produce a point at infinity, please re-run");
accumulator.write_chunk(start, compress_the_output, output_map)?;
println!("Done processing {} powers of tau", end);
Expand Down

0 comments on commit 9af1e2a

Please sign in to comment.