pub struct CompilationOptions {
pub canonicalize_constraints: bool,
}Expand description
Circuit compilation & proving options.
Fields§
§canonicalize_constraints: boolConverts all constraints to canonical form using Constraint::canonicalize.
When disabled, proving errors out rather than attempting canonicalization if there are negative exponents.
Canonicalization is carried out inside CircuitBuilder::build.
WARNING: canonicalized constraints may be more permissive than their original form because a negative exponent requires the variable to be different from zero. Starkom does not allow proving with negative exponents, so enable this flag only if your circuit is correctly constrained even when those variables are zero.
Trait Implementations§
Source§impl Clone for CompilationOptions
impl Clone for CompilationOptions
Source§fn clone(&self) -> CompilationOptions
fn clone(&self) -> CompilationOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompilationOptions
impl Debug for CompilationOptions
Source§impl Default for CompilationOptions
impl Default for CompilationOptions
impl Eq for CompilationOptions
Source§impl PartialEq for CompilationOptions
impl PartialEq for CompilationOptions
impl StructuralPartialEq for CompilationOptions
Auto Trait Implementations§
impl Freeze for CompilationOptions
impl RefUnwindSafe for CompilationOptions
impl Send for CompilationOptions
impl Sync for CompilationOptions
impl Unpin for CompilationOptions
impl UnsafeUnpin for CompilationOptions
impl UnwindSafe for CompilationOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more