Skip to content

Commit

Permalink
doc: document the constraint generator
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-ferdinand committed May 8, 2024
1 parent 0b74eaa commit 49864e4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions constraint-evaluation-generator/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
//! The constraint generator is a tool that generates efficient-to-evaluate code
//! for the constraints of Triton Virtual Machine, in particular, for the
//! Arithmetic Intermediate Representation (AIR) constraints of the
//! Zero-Knowledge Proof System underpinning the STARK proof system.
//!
//! The constraints are defined in the Triton VM crate. In order to leverage
//! compiler optimizations, rust code is generated using those constraints.
//!
//! Additionally, the constraints are also translated to Triton Assembly (TASM).
//! This allows Triton VM to evaluate its own constraints, which is essential
//! for recursive proof verification, or Incrementally Verifiable Computation.
//!
//! The constraint generator can be run by executing
//! `cargo run --bin constraint-evaluation-generator`
//! in the root of the repository.

#![warn(missing_debug_implementations)]
#![warn(missing_docs)]

use std::fs::write;

Expand Down

0 comments on commit 49864e4

Please sign in to comment.