r1cs_field_constraint
stdlib/r1cs/r1cs_field_constraint.nbv
r1cs_field_constraint(wtns_len)
get a R1CS with a single constraint constraining -1 * -1 = 1
- Calls
calloc,negone- Precompiles
concat!- Used by
r1cs/r1cs_from_output
Source
# get a R1CS with a single constraint
# constraining -1 * -1 = 1
(wtns_len)
(
(concat! negone(), calloc(wtns_len - 1)),
(concat! negone(), calloc(wtns_len - 1)),
(concat! 1, calloc(wtns_len - 1))
)