From e4702f24238305a6825fac1052bd7c699f62f56f Mon Sep 17 00:00:00 2001 From: futreall <86553580+futreall@users.noreply.github.com> Date: Fri, 3 Jan 2025 13:02:30 +0200 Subject: [PATCH 1/2] Update phase1.go --- backend/groth16/bls24-315/mpcsetup/phase1.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/groth16/bls24-315/mpcsetup/phase1.go b/backend/groth16/bls24-315/mpcsetup/phase1.go index c61a80762..2b5764750 100644 --- a/backend/groth16/bls24-315/mpcsetup/phase1.go +++ b/backend/groth16/bls24-315/mpcsetup/phase1.go @@ -36,7 +36,7 @@ type Phase1 struct { Hash []byte // sha256 hash } -// InitPhase1 initialize phase 1 of the MPC. This is called once by the coordinator before +// InitPhase1 initializes phase 1 of the MPC. This is called once by the coordinator before // any randomness contribution is made (see Contribute()). func InitPhase1(power int) (phase1 Phase1) { N := int(math.Pow(2, float64(power))) @@ -50,7 +50,7 @@ func InitPhase1(power int) (phase1 Phase1) { phase1.PublicKeys.Alpha = newPublicKey(alpha, nil, 2) phase1.PublicKeys.Beta = newPublicKey(beta, nil, 3) - // First contribution use generators + // First contribution uses generators _, _, g1, g2 := curve.Generators() phase1.Parameters.G2.Beta.Set(&g2) phase1.Parameters.G1.Tau = make([]curve.G1Affine, 2*N-1) From d068f34664d67bf940a94149643ecd76efc5eab0 Mon Sep 17 00:00:00 2001 From: futreall <86553580+futreall@users.noreply.github.com> Date: Fri, 3 Jan 2025 13:02:46 +0200 Subject: [PATCH 2/2] Update phase1.go --- backend/groth16/bls12-381/mpcsetup/phase1.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/groth16/bls12-381/mpcsetup/phase1.go b/backend/groth16/bls12-381/mpcsetup/phase1.go index be297e477..1e8fcd9fa 100644 --- a/backend/groth16/bls12-381/mpcsetup/phase1.go +++ b/backend/groth16/bls12-381/mpcsetup/phase1.go @@ -36,7 +36,7 @@ type Phase1 struct { Hash []byte // sha256 hash } -// InitPhase1 initialize phase 1 of the MPC. This is called once by the coordinator before +// InitPhase1 initializes phase 1 of the MPC. This is called once by the coordinator before // any randomness contribution is made (see Contribute()). func InitPhase1(power int) (phase1 Phase1) { N := int(math.Pow(2, float64(power)))