You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should initialize partialSums with size A.size() - 1, as the last element is never used within the constraints. This was probably the reason, that the assert(cs.is_valid) in libsnark/gadgetlib2/examples/simple_example.cpp never triggered.
Do you agree?
The text was updated successfully, but these errors were encountered:
bool r1cs_constraint_system::is_valid() returns false for correct setups.
Minimal Example:
Expected behaviour: cs.is_valid() returns true
Observed behaviour: cs.is_valid() returns false
I think the issue is in libsnark/relations/variable.tcc, in
which checks the largest index used. It should probably be
to account for the additional row representing ONE in the constraint system.
Additionally in libsnark/gadgetlib2/gadget.cpp
Should initialize partialSums with size A.size() - 1, as the last element is never used within the constraints. This was probably the reason, that the assert(cs.is_valid) in libsnark/gadgetlib2/examples/simple_example.cpp never triggered.
Do you agree?
The text was updated successfully, but these errors were encountered: