Make setup parallel.

This commit is contained in:
Sphere Liu 2022-03-31 13:31:59 -05:00
parent ef089a7400
commit c288b3e98c
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ impl<C: CurveAffine> Params<C> {
assert!(k <= E::Scalar::S);
let n: u64 = 1 << k;
// g = [G1, [s] G1, [s^2] G1, ..., [s^(n-1)] G1]
// Calculate g = [G1, [s] G1, [s^2] G1, ..., [s^(n-1)] G1] in parallel.
let g1 = <E::G1Affine as PrimeCurveAffine>::generator();
let s = E::Scalar::random(OsRng);