Docs.rs
  • snarkvm-r1cs-0.12.2
    • snarkvm-r1cs 0.12.2
    • Permalink
    • Docs.rs crate page
    • Apache-2.0
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • howardwu
    • Dependencies
      • anyhow ^1.0.71 normal
      • cfg-if ^1.0.0 normal
      • fxhash ^0.2.1 normal
      • indexmap ^1.9.3 normal
      • itertools ^0.10.3 normal
      • snarkvm-curves =0.12.2 normal
      • snarkvm-fields =0.12.2 normal
      • snarkvm-utilities =0.12.2 normal
      • thiserror ^1.0 normal
    • Versions
    • 78.85% of the crate is documented
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate snarkvm_r1cs

snarkvm_r1cs0.12.2

  • All Items

Crate Items

  • Modules
  • Structs
  • Enums
  • Traits
  • Type Aliases

Crates

  • snarkvm_r1cs

Crate snarkvm_r1cs

Source

Re-exports§

pub use errors::*;

Modules§

errors

Structs§

ConstraintCounter
Constraint counter for testing purposes.
LinearCombination
This represents a linear combination of some variables, with coefficients in the field F. The (coeff, var) pairs in a LinearCombination 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.
OptionalVec
TestConstraintChecker
Constraint system for testing purposes.
TestConstraintSystem
Constraint system for testing purposes.
Variable
Represents a variable in a constraint system.

Enums§

ConstraintVariable
Either a Variable or a LinearCombination.
Index
Represents the index of either a public variable (input) or a private variable (auxiliary).

Traits§

Assignment
ConstraintSynthesizer
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.
ConstraintSystem
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.

Results

Settings
Help
    trait
    snarkvm_r1cs::ConstraintSynthesizer
    Computations are expressed in terms of rank-1 constraint …
    trait method
    snarkvm_r1cs::ConstraintSynthesizer::generate_constraints
    &ConstraintSynthesizer, &mut CS -> Result<(), SynthesisError>
    Drives generation of new constraints inside CS.
No results :(
Try on DuckDuckGo?

Or try looking in one of these:
  • The Rust Reference for technical details about the language.
  • Rust By Example for expository code examples.
  • The Rust Book for introductions to language features and the language itself.
  • Docs.rs for documentation of crates released on crates.io.