Skip to content

Commit

Permalink
fix: plonk.SRSSize takes constraint.ConstraintSystem as input, not co…
Browse files Browse the repository at this point in the history
…nstraint.System
  • Loading branch information
gbotrel committed Apr 20, 2024
1 parent 3c506fd commit c902244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/plonk/plonk.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit c902244

Please sign in to comment.