Feature Request: Automatic Documentation Generation for Constraints #211
Labels
✨ enhancement
Improvement or new feature
🤔 question
More information is needed
📜 specification
Relates to the specification
Currently, the constraints are described in 3 places:
Downsides: We need at least 2 equivalences between pairs of forms, which is confusing for humans and exposes a larger than necessary vulnerability surface. Furthermore, the various forms are in disparate locations, compounding the problem.
Proposed solution: Let's embed the human-readable form in comments in the source code, and then generate the documentation (both human-readable and circuit forms) from the comments and subsequent code using a script. With this approach, there is one source of truth: the code. But to verify that the code is correct is suffices to read the documentation and verify the human-readable description against the nicely rendered circuit form in the browser.
The text was updated successfully, but these errors were encountered: