Crate snarkvm_r1cs
SourceRe-exports§
pub use errors::*;
Modules§
Structs§
- Constraint
Counter - Constraint counter for testing purposes.
- Linear
Combination - This represents a linear combination of some variables, with coefficients
in the field
F
. The(coeff, var)
pairs in aLinearCombination
are kept sorted according to the index of the variable in its constraint system. - Namespace
- This is a “namespaced” constraint system which borrows a constraint system (pushing a namespace context) and, when dropped, pops out of the namespace context.
- Optional
Vec - Test
Constraint Checker - Constraint system for testing purposes.
- Test
Constraint System - Constraint system for testing purposes.
- Variable
- Represents a variable in a constraint system.
Enums§
- Constraint
Variable - Either a
Variable
or aLinearCombination
. - Index
- Represents the index of either a public variable (input) or a private variable (auxiliary).
Traits§
- Assignment
- Constraint
Synthesizer - Computations are expressed in terms of rank-1 constraint systems (R1CS).
The
generate_constraints
method is called to generate constraints for both CRS generation and for proving. - Constraint
System - Represents a constraint system which can have new variables allocated and constrains between them formed.
Type Aliases§
- Fr
- This field is the scalar field (Fr) of BLS12-377.