Struct snarkvm_circuit_environment::helpers::Assignment
source · pub struct Assignment<F: PrimeField> { /* private fields */ }
Expand description
A struct that contains public variable assignments, private variable assignments, and constraint assignments.
Implementations§
source§impl<F: PrimeField> Assignment<F>
impl<F: PrimeField> Assignment<F>
sourcepub fn public_inputs(&self) -> Vec<F>
pub fn public_inputs(&self) -> Vec<F>
Returns the public inputs of the assignment.
sourcepub fn num_public(&self) -> u64
pub fn num_public(&self) -> u64
Returns the number of public variables in the assignment.
sourcepub fn num_private(&self) -> u64
pub fn num_private(&self) -> u64
Returns the number of private variables in the assignment.
sourcepub fn num_constraints(&self) -> u64
pub fn num_constraints(&self) -> u64
Returns the number of constraints in the assignment.
Trait Implementations§
source§impl<F: Clone + PrimeField> Clone for Assignment<F>
impl<F: Clone + PrimeField> Clone for Assignment<F>
source§fn clone(&self) -> Assignment<F>
fn clone(&self) -> Assignment<F>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<F: PrimeField> ConstraintSynthesizer<F> for Assignment<F>
impl<F: PrimeField> ConstraintSynthesizer<F> for Assignment<F>
source§fn generate_constraints<CS: ConstraintSystem<F>>(
&self,
cs: &mut CS
) -> Result<(), SynthesisError>
fn generate_constraints<CS: ConstraintSystem<F>>( &self, cs: &mut CS ) -> Result<(), SynthesisError>
Synthesizes the constraints from the environment into a snarkvm_r1cs
-compliant constraint system.