pub struct IncomingInstance<CM: CommitmentDef> {
pub cm_w: CM::Commitment,
pub x: Vec<CM::Scalar>,
}Expand description
IncomingInstance defines Nova’s incoming instance.
Fields§
§cm_w: CM::CommitmentIncomingInstance::cm_w is the witness commitment.
x: Vec<CM::Scalar>IncomingInstance::x is the vector of public inputs (to the circuit).
Trait Implementations§
Source§impl<CM: CommitmentDef> Absorbable for IncomingInstance<CM>
impl<CM: CommitmentDef> Absorbable for IncomingInstance<CM>
Source§fn absorb_into<F: PrimeField>(&self, dest: &mut Vec<F>)
fn absorb_into<F: PrimeField>(&self, dest: &mut Vec<F>)
Source§impl<CM: CommitmentDefGadget> AllocVar<IncomingInstance<<CM as CommitmentDefGadget>::Widget>, <CM as CommitmentDefGadget>::ConstraintField> for IncomingInstanceVar<CM>
impl<CM: CommitmentDefGadget> AllocVar<IncomingInstance<<CM as CommitmentDefGadget>::Widget>, <CM as CommitmentDefGadget>::ConstraintField> for IncomingInstanceVar<CM>
Source§fn new_variable<T: Borrow<IncomingInstance<CM::Widget>>>(
cs: impl Into<Namespace<CM::ConstraintField>>,
f: impl FnOnce() -> Result<T, SynthesisError>,
mode: AllocationMode,
) -> Result<Self, SynthesisError>
fn new_variable<T: Borrow<IncomingInstance<CM::Widget>>>( cs: impl Into<Namespace<CM::ConstraintField>>, f: impl FnOnce() -> Result<T, SynthesisError>, mode: AllocationMode, ) -> Result<Self, SynthesisError>
Allocates a new variable of type
Self in the ConstraintSystem cs.
The mode of allocation is decided by mode.Source§fn new_constant(
cs: impl Into<Namespace<F>>,
t: impl Borrow<V>,
) -> Result<Self, SynthesisError>
fn new_constant( cs: impl Into<Namespace<F>>, t: impl Borrow<V>, ) -> Result<Self, SynthesisError>
Source§fn new_input<T>(
cs: impl Into<Namespace<F>>,
f: impl FnOnce() -> Result<T, SynthesisError>,
) -> Result<Self, SynthesisError>where
T: Borrow<V>,
fn new_input<T>(
cs: impl Into<Namespace<F>>,
f: impl FnOnce() -> Result<T, SynthesisError>,
) -> Result<Self, SynthesisError>where
T: Borrow<V>,
Allocates a new public input of type
Self in the ConstraintSystem
cs.Source§fn new_witness<T>(
cs: impl Into<Namespace<F>>,
f: impl FnOnce() -> Result<T, SynthesisError>,
) -> Result<Self, SynthesisError>where
T: Borrow<V>,
fn new_witness<T>(
cs: impl Into<Namespace<F>>,
f: impl FnOnce() -> Result<T, SynthesisError>,
) -> Result<Self, SynthesisError>where
T: Borrow<V>,
Allocates a new private witness of type
Self in the ConstraintSystem
cs.Source§fn new_variable_with_inferred_mode<T>(
cs: impl Into<Namespace<F>>,
f: impl FnOnce() -> Result<T, SynthesisError>,
) -> Result<Self, SynthesisError>where
T: Borrow<V>,
fn new_variable_with_inferred_mode<T>(
cs: impl Into<Namespace<F>>,
f: impl FnOnce() -> Result<T, SynthesisError>,
) -> Result<Self, SynthesisError>where
T: Borrow<V>,
Allocates a new constant or private witness of type
Self in the
ConstraintSystem cs with the allocation mode inferred from cs.
A constant is allocated if cs is None, and a private witness is
allocated otherwise. Read moreSource§impl<CM: Clone + CommitmentDef> Clone for IncomingInstance<CM>
impl<CM: Clone + CommitmentDef> Clone for IncomingInstance<CM>
Source§fn clone(&self) -> IncomingInstance<CM>
fn clone(&self) -> IncomingInstance<CM>
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<CM: Debug + CommitmentDef> Debug for IncomingInstance<CM>
impl<CM: Debug + CommitmentDef> Debug for IncomingInstance<CM>
Source§impl<CM: CommitmentDef> Dummy<&ArithConfig> for IncomingInstance<CM>
impl<CM: CommitmentDef> Dummy<&ArithConfig> for IncomingInstance<CM>
Source§fn dummy(cfg: &ArithConfig) -> Self
fn dummy(cfg: &ArithConfig) -> Self
impl<CM: Eq + CommitmentDef> Eq for IncomingInstance<CM>
Source§impl<CM: CommitmentDef> FoldingInstance<CM> for IncomingInstance<CM>
impl<CM: CommitmentDef> FoldingInstance<CM> for IncomingInstance<CM>
Source§const N_COMMITMENTS: usize = 1
const N_COMMITMENTS: usize = 1
FoldingInstance::N_COMMITMENTS defines the number of commitments
contained in the instance.Source§fn commitments(&self) -> Vec<&CM::Commitment>
fn commitments(&self) -> Vec<&CM::Commitment>
FoldingInstance::commitments returns the commitments contained in
the instance.Source§fn public_inputs(&self) -> &[CM::Scalar]
fn public_inputs(&self) -> &[CM::Scalar]
FoldingInstance::public_inputs returns the reference to the public
inputs contained in the instance.Source§fn public_inputs_mut(&mut self) -> &mut [CM::Scalar]
fn public_inputs_mut(&mut self) -> &mut [CM::Scalar]
FoldingInstance::public_inputs_mut returns the mutable reference to
the public inputs contained in the instance.Source§impl<CM: PartialEq + CommitmentDef> PartialEq for IncomingInstance<CM>
impl<CM: PartialEq + CommitmentDef> PartialEq for IncomingInstance<CM>
Source§impl<A, CM> Relation<IncomingWitness<CM>, IncomingInstance<CM>> for NovaKey<A, CM>
impl<A, CM> Relation<IncomingWitness<CM>, IncomingInstance<CM>> for NovaKey<A, CM>
impl<CM: PartialEq + CommitmentDef> StructuralPartialEq for IncomingInstance<CM>
Source§impl<A: Arith, CM: CommitmentOps> WitnessInstanceSampler<IncomingWitness<CM>, IncomingInstance<CM>> for NovaKey<A, CM>
impl<A: Arith, CM: CommitmentOps> WitnessInstanceSampler<IncomingWitness<CM>, IncomingInstance<CM>> for NovaKey<A, CM>
Source§type Source = Assignments<<CM as CommitmentDef>::Scalar, Vec<<CM as CommitmentDef>::Scalar>>
type Source = Assignments<<CM as CommitmentDef>::Scalar, Vec<<CM as CommitmentDef>::Scalar>>
WitnessInstanceSampler::Source defines the type of the source from
which a satisfying pair is sampled.Source§type Error = Error
type Error = Error
WitnessInstanceSampler::Error defines the error type that may occur
when sampling a satisfying pair.Auto Trait Implementations§
impl<CM> Freeze for IncomingInstance<CM>
impl<CM> RefUnwindSafe for IncomingInstance<CM>where
<CM as CommitmentDef>::Commitment: RefUnwindSafe,
<CM as CommitmentDef>::Scalar: RefUnwindSafe,
impl<CM> Send for IncomingInstance<CM>
impl<CM> Sync for IncomingInstance<CM>
impl<CM> Unpin for IncomingInstance<CM>
impl<CM> UnsafeUnpin for IncomingInstance<CM>
impl<CM> UnwindSafe for IncomingInstance<CM>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more