mirror of https://github.com/zcash/halo2.git
Make setup parallel.
This commit is contained in:
parent
ef089a7400
commit
c288b3e98c
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue