Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constraint system that panics when an invalid constraint is added #353

Open
2 of 4 tasks
weikengchen opened this issue Sep 8, 2021 · 0 comments
Open
2 of 4 tasks
Labels
D-medium Difficulty: medium T-design Type: discuss API design and/or research T-feature Type: new features T-test Type: test improvements

Comments

@weikengchen
Copy link
Member

weikengchen commented Sep 8, 2021

Summary

This issue is about a feature request on ConstraintSystem. Ideally, there is a debug mode. When it is on, it helps the developers find out which constraint is failing.

Problem Definition

After the namespaces disappear from arkworks-rs, it is harder to debug a constraint system that is not satisfactory, which often appears only when the verify function fails.

Proposal

A potential solution for debugging is as follows:

Since such checking has an overhead, it is only turned on when debug mode is on, which by default is off.


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@weikengchen weikengchen added T-feature Type: new features help wanted labels Sep 8, 2021
@Pratyush Pratyush added D-medium Difficulty: medium T-design Type: discuss API design and/or research T-test Type: test improvements and removed help wanted labels Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
D-medium Difficulty: medium T-design Type: discuss API design and/or research T-feature Type: new features T-test Type: test improvements
Projects
None yet
Development

No branches or pull requests

2 participants