pub enum BerkeleyChallengeTerm {
Alpha,
Beta,
Gamma,
JointCombiner,
}
Expand description
The challenge terms used in Berkeley.
Variants§
Alpha
Used to combine constraints
Beta
The first challenge used in the permutation argument
Gamma
The second challenge used in the permutation argument
JointCombiner
A challenge used to columns of a lookup table
Trait Implementations§
source§impl<'a> AlphaChallengeTerm<'a> for BerkeleyChallengeTerm
impl<'a> AlphaChallengeTerm<'a> for BerkeleyChallengeTerm
source§impl Clone for BerkeleyChallengeTerm
impl Clone for BerkeleyChallengeTerm
source§fn clone(&self) -> BerkeleyChallengeTerm
fn clone(&self) -> BerkeleyChallengeTerm
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<'a, F: FftField> ColumnEnvironment<'a, F, BerkeleyChallengeTerm, BerkeleyChallenges<F>> for Environment<'a, F>
impl<'a, F: FftField> ColumnEnvironment<'a, F, BerkeleyChallengeTerm, BerkeleyChallenges<F>> for Environment<'a, F>
§type Column = Column
type Column = Column
The generic type of column the environment can use.
In other words, with the multi-variate polynomial analogy, it is the
variables the multi-variate polynomials are defined upon.
i.e. for a polynomial
P(X, Y, Z)
, the type will represent the variable
X
, Y
and Z
.source§fn get_column(&self, col: &Self::Column) -> Option<&'a Evaluations<F, D<F>>>
fn get_column(&self, col: &Self::Column) -> Option<&'a Evaluations<F, D<F>>>
Return the evaluation of the given column, over the domain.
fn get_domain(&self, d: Domain) -> D<F>
source§fn column_domain(&self, col: &Self::Column) -> Domain
fn column_domain(&self, col: &Self::Column) -> Domain
Defines the domain over which the column is evaluated
source§fn get_constants(&self) -> &Constants<F>
fn get_constants(&self) -> &Constants<F>
Return the constants parameters that the expression might use.
For instance, it can be the matrix used by the linear layer in the
permutation.
source§fn get_challenges(&self) -> &BerkeleyChallenges<F>
fn get_challenges(&self) -> &BerkeleyChallenges<F>
Return the challenges, coined by the verifier.
fn vanishes_on_zero_knowledge_and_previous_rows( &self ) -> &'a Evaluations<F, D<F>>
source§impl Debug for BerkeleyChallengeTerm
impl Debug for BerkeleyChallengeTerm
source§impl<'de> Deserialize<'de> for BerkeleyChallengeTerm
impl<'de> Deserialize<'de> for BerkeleyChallengeTerm
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for BerkeleyChallengeTerm
impl Display for BerkeleyChallengeTerm
source§impl<F> ExprOps<F, BerkeleyChallengeTerm> for Expr<ConstantExpr<F, BerkeleyChallengeTerm>, Column>where
F: PrimeField,
Expr<ConstantExpr<F, BerkeleyChallengeTerm>, Column>: Display,
impl<F> ExprOps<F, BerkeleyChallengeTerm> for Expr<ConstantExpr<F, BerkeleyChallengeTerm>, Column>where F: PrimeField, Expr<ConstantExpr<F, BerkeleyChallengeTerm>, Column>: Display,
source§fn two_to_limb() -> Self
fn two_to_limb() -> Self
2^{LIMB_BITS}
source§fn two_to_2limb() -> Self
fn two_to_2limb() -> Self
2^{2 * LIMB_BITS}
source§fn two_to_3limb() -> Self
fn two_to_3limb() -> Self
2^{3 * LIMB_BITS}
fn witness(row: CurrOrNext, col: usize, _: Option<&ArgumentData<F>>) -> Self
source§fn constant(
expr: ConstantExpr<F, BerkeleyChallengeTerm>,
_: Option<&ArgumentData<F>>
) -> Self
fn constant( expr: ConstantExpr<F, BerkeleyChallengeTerm>, _: Option<&ArgumentData<F>> ) -> Self
Create a constant
source§impl<F: Field> ExprOps<F, BerkeleyChallengeTerm> for F
impl<F: Field> ExprOps<F, BerkeleyChallengeTerm> for F
source§fn two_to_limb() -> Self
fn two_to_limb() -> Self
2^{LIMB_BITS}
source§fn two_to_2limb() -> Self
fn two_to_2limb() -> Self
2^{2 * LIMB_BITS}
source§fn two_to_3limb() -> Self
fn two_to_3limb() -> Self
2^{3 * LIMB_BITS}
fn witness(row: CurrOrNext, col: usize, env: Option<&ArgumentData<F>>) -> Self
source§fn constant(
expr: ConstantExpr<F, BerkeleyChallengeTerm>,
env: Option<&ArgumentData<F>>
) -> Self
fn constant( expr: ConstantExpr<F, BerkeleyChallengeTerm>, env: Option<&ArgumentData<F>> ) -> Self
Create a constant
source§impl<F: Field> Index<BerkeleyChallengeTerm> for BerkeleyChallenges<F>
impl<F: Field> Index<BerkeleyChallengeTerm> for BerkeleyChallenges<F>
source§impl PartialEq<BerkeleyChallengeTerm> for BerkeleyChallengeTerm
impl PartialEq<BerkeleyChallengeTerm> for BerkeleyChallengeTerm
source§fn eq(&self, other: &BerkeleyChallengeTerm) -> bool
fn eq(&self, other: &BerkeleyChallengeTerm) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BerkeleyChallengeTerm
impl Serialize for BerkeleyChallengeTerm
impl Copy for BerkeleyChallengeTerm
impl Eq for BerkeleyChallengeTerm
impl StructuralEq for BerkeleyChallengeTerm
impl StructuralPartialEq for BerkeleyChallengeTerm
Auto Trait Implementations§
impl RefUnwindSafe for BerkeleyChallengeTerm
impl Send for BerkeleyChallengeTerm
impl Sync for BerkeleyChallengeTerm
impl Unpin for BerkeleyChallengeTerm
impl UnwindSafe for BerkeleyChallengeTerm
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more