From c9022441484e8bb37722aa17b0652049d2eed63c Mon Sep 17 00:00:00 2001 From: Gautam Botrel Date: Fri, 19 Apr 2024 21:54:24 -0500 Subject: [PATCH] fix: plonk.SRSSize takes constraint.ConstraintSystem as input, not constraint.System --- backend/plonk/plonk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/plonk/plonk.go b/backend/plonk/plonk.go index f75158e9f8..1b615664ee 100644 --- a/backend/plonk/plonk.go +++ b/backend/plonk/plonk.go @@ -322,7 +322,7 @@ func NewVerifyingKey(curveID ecc.ID) VerifyingKey { // SRSSize returns the required size of the kzg SRS for a given constraint system // Note that the SRS size in Lagrange form is a power of 2, // and the SRS size in canonical form need few extra elements (3) to account for the blinding factors -func SRSSize(ccs constraint.System) (sizeCanonical, sizeLagrange int) { +func SRSSize(ccs constraint.ConstraintSystem) (sizeCanonical, sizeLagrange int) { nbConstraints := ccs.GetNbConstraints() sizeSystem := nbConstraints + ccs.GetNbPublicVariables()