Skip to content

How to add constraints into R1CS struct directly #397

@LBruyne

Description

@LBruyne

I'm doing a work parsing .r1cs file into gnark system, more formally, adding a feature so that gnark can prove and verify a .r1cs file compiled by circom (details in https://github.com/iden3/r1csfile/blob/master/doc/r1cs_bin_format.md)
A necessary thing to do is adding constraints(arrays of L,R,O) into R1CS or CCS struct. But I only find a addConstraint (the figure following) method which is an inner method of R1CS struct.
image
So why not add a interface method to API interface so that we can add constraints flexibly?
image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions