From 36ebe43b7e4445fffc3d1d78e5ebe7cd17429fc8 Mon Sep 17 00:00:00 2001 From: liuxiaobleach <1241368737@qq.com> Date: Tue, 12 Mar 2024 14:59:14 +0800 Subject: [PATCH] add 377 pre setup --- backend/groth16/groth16.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/groth16/groth16.go b/backend/groth16/groth16.go index 164aeb50ce..9aa26377d2 100644 --- a/backend/groth16/groth16.go +++ b/backend/groth16/groth16.go @@ -224,7 +224,9 @@ func Setup(r1cs constraint.ConstraintSystem) (ProvingKey, VerifyingKey, error) { return nil, nil, err } if icicle_bls12377.HasIcicle { - return &icicle_bls12377.ProvingKey{ProvingKey: &pk}, &vk, nil + iciclePk := &icicle_bls12377.ProvingKey{ProvingKey: &pk} + err := icicle_bls12377.SetupDevicePointers(iciclePk) + return iciclePk, &vk, err } return &pk, &vk, nil case *cs_bls12381.R1CS: