Skip to content

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

Open
@weikengchen

Description

@weikengchen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    D-mediumDifficulty: mediumT-designType: discuss API design and/or researchT-featureType: new featuresT-testType: test improvements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions