Trait ark_r1cs_std::R1CSVar [−][src]
This trait describes some core functionality that is common to high-level
variables, such as Booleans, FieldVars, GroupVars, etc.
Associated Types
type Value: Debug + Eq + Clone[src]
The type of the “native” value that Self represents in the constraint
system.
Required methods
fn cs(&self) -> ConstraintSystemRef<F>[src]
Returns the underlying ConstraintSystemRef.
If self is a constant value, then this must return
ark_relations::r1cs::ConstraintSystemRef::None.
fn value(&self) -> Result<Self::Value, SynthesisError>[src]
Returns the value that is assigned to self in the underlying
ConstraintSystem.
Provided methods
fn is_constant(&self) -> bool[src]
Returns true if self is a circuit-generation-time constant.
Implementations on Foreign Types
impl<F: Field, T: R1CSVar<F>> R1CSVar<F> for [T][src]
type Value = Vec<T::Value>
fn cs(&self) -> ConstraintSystemRef<F>[src]
fn value(&self) -> Result<Self::Value, SynthesisError>[src]
impl<'a, F: Field, T: 'a + R1CSVar<F>> R1CSVar<F> for &'a T[src]
type Value = T::Value
fn cs(&self) -> ConstraintSystemRef<F>[src]
fn value(&self) -> Result<Self::Value, SynthesisError>[src]
Implementors
impl<BF, P> R1CSVar<<P as CubicExtParameters>::BasePrimeField> for CubicExtVar<BF, P> where
BF: FieldVar<P::BaseField, P::BasePrimeField>,
&'a BF: FieldOpsBounds<'a, P::BaseField, BF>,
P: CubicExtVarParams<BF>, [src]
BF: FieldVar<P::BaseField, P::BasePrimeField>,
&'a BF: FieldOpsBounds<'a, P::BaseField, BF>,
P: CubicExtVarParams<BF>,
type Value = CubicExtField<P>
fn cs(&self) -> ConstraintSystemRef<P::BasePrimeField>[src]
fn value(&self) -> Result<Self::Value, SynthesisError>[src]
impl<BF, P> R1CSVar<<P as QuadExtParameters>::BasePrimeField> for QuadExtVar<BF, P> where
BF: FieldVar<P::BaseField, P::BasePrimeField>,
&'a BF: FieldOpsBounds<'a, P::BaseField, BF>,
P: QuadExtVarParams<BF>, [src]
BF: FieldVar<P::BaseField, P::BasePrimeField>,
&'a BF: FieldOpsBounds<'a, P::BaseField, BF>,
P: QuadExtVarParams<BF>,
type Value = QuadExtField<P>
fn cs(&self) -> ConstraintSystemRef<P::BasePrimeField>[src]
fn value(&self) -> Result<Self::Value, SynthesisError>[src]
impl<F: Field> R1CSVar<F> for Boolean<F>[src]
type Value = bool
fn cs(&self) -> ConstraintSystemRef<F>[src]
fn value(&self) -> Result<Self::Value, SynthesisError>[src]
impl<F: Field> R1CSVar<F> for UInt8<F>[src]
type Value = u8
fn cs(&self) -> ConstraintSystemRef<F>[src]
fn value(&self) -> Result<Self::Value, SynthesisError>[src]
impl<F: Field> R1CSVar<F> for UInt16<F>[src]
type Value = u16
fn cs(&self) -> ConstraintSystemRef<F>[src]
fn value(&self) -> Result<Self::Value, SynthesisError>[src]
impl<F: Field> R1CSVar<F> for UInt32<F>[src]
type Value = u32
fn cs(&self) -> ConstraintSystemRef<F>[src]
fn value(&self) -> Result<Self::Value, SynthesisError>[src]
impl<F: Field> R1CSVar<F> for UInt64<F>[src]
type Value = u64
fn cs(&self) -> ConstraintSystemRef<F>[src]
fn value(&self) -> Result<Self::Value, SynthesisError>[src]
impl<F: Field> R1CSVar<F> for UInt128<F>[src]
type Value = u128
fn cs(&self) -> ConstraintSystemRef<F>[src]
fn value(&self) -> Result<Self::Value, SynthesisError>[src]
impl<F: PrimeField> R1CSVar<F> for FpVar<F>[src]
type Value = F
fn cs(&self) -> ConstraintSystemRef<F>[src]
fn value(&self) -> Result<Self::Value, SynthesisError>[src]
impl<P, F> R1CSVar<<<P as ModelParameters>::BaseField as Field>::BasePrimeField> for ProjectiveVar<P, F> where
P: SWModelParameters,
F: FieldVar<P::BaseField, <P::BaseField as Field>::BasePrimeField>,
&'a F: FieldOpsBounds<'a, P::BaseField, F>, [src]
P: SWModelParameters,
F: FieldVar<P::BaseField, <P::BaseField as Field>::BasePrimeField>,
&'a F: FieldOpsBounds<'a, P::BaseField, F>,
type Value = SWProjective<P>
fn cs(&self) -> ConstraintSystemRef<<P::BaseField as Field>::BasePrimeField>[src]
fn value(&self) -> Result<Self::Value, SynthesisError>[src]
impl<P, F> R1CSVar<<<P as ModelParameters>::BaseField as Field>::BasePrimeField> for AffineVar<P, F> where
P: TEModelParameters,
F: FieldVar<P::BaseField, <P::BaseField as Field>::BasePrimeField>,
&'a F: FieldOpsBounds<'a, P::BaseField, F>, [src]
P: TEModelParameters,
F: FieldVar<P::BaseField, <P::BaseField as Field>::BasePrimeField>,
&'a F: FieldOpsBounds<'a, P::BaseField, F>,
type Value = TEProjective<P>
fn cs(&self) -> ConstraintSystemRef<<P::BaseField as Field>::BasePrimeField>[src]
fn value(&self) -> Result<TEProjective<P>, SynthesisError>[src]
impl<P, F> R1CSVar<<<P as ModelParameters>::BaseField as Field>::BasePrimeField> for MontgomeryAffineVar<P, F> where
P: TEModelParameters,
F: FieldVar<P::BaseField, <P::BaseField as Field>::BasePrimeField>,
&'a F: FieldOpsBounds<'a, P::BaseField, F>, [src]
P: TEModelParameters,
F: FieldVar<P::BaseField, <P::BaseField as Field>::BasePrimeField>,
&'a F: FieldOpsBounds<'a, P::BaseField, F>,