Skip to content

Commit

Permalink
add 377 pre setup
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxiaobleach committed Mar 12, 2024
1 parent 1229b66 commit 36ebe43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/groth16/groth16.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 36ebe43

Please sign in to comment.