pub struct PiopParams<F: PrimeField, Curve: TECurveConfig<BaseField = F>> {
pub keyset_part_size: usize,
/* private fields */
}Expand description
Plonk Interactive Oracle Proofs (PIOP) parameters.
Fields§
§keyset_part_size: usizeLength of the part of the column representing the public keys (including the padding).
Implementations§
Source§impl<F: PrimeField, Curve: TECurveConfig<BaseField = F>> PiopParams<F, Curve>
impl<F: PrimeField, Curve: TECurveConfig<BaseField = F>> PiopParams<F, Curve>
Sourcepub fn setup(
domain: Domain<F>,
h: Affine<Curve>,
seed: Affine<Curve>,
padding: Affine<Curve>,
) -> Self
pub fn setup( domain: Domain<F>, h: Affine<Curve>, seed: Affine<Curve>, padding: Affine<Curve>, ) -> Self
Initialize PIOP parameters.
domain: polynomials evaluation domain.h: Blinding base point.seed: Accumulation base pointpadding: The point used to pad the list of public keys.
All points should be of an unknown discrete log.
pub fn fixed_columns( &self, keys: &[Affine<Curve>], ) -> FixedColumns<F, Affine<Curve>>
pub fn points_column( &self, keys: &[Affine<Curve>], ) -> AffineColumn<F, Affine<Curve>>
pub fn power_of_2_multiples_of_h(&self) -> Vec<Affine<Curve>>
pub fn scalar_part(&self, e: Curve::ScalarField) -> Vec<bool>
pub fn keyset_part_selector(&self) -> Vec<F>
Trait Implementations§
Source§impl<F: Clone + PrimeField, Curve: Clone + TECurveConfig<BaseField = F>> Clone for PiopParams<F, Curve>
impl<F: Clone + PrimeField, Curve: Clone + TECurveConfig<BaseField = F>> Clone for PiopParams<F, Curve>
Source§fn clone(&self) -> PiopParams<F, Curve>
fn clone(&self) -> PiopParams<F, Curve>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<F, Curve> Freeze for PiopParams<F, Curve>where
F: Freeze,
impl<F, Curve> RefUnwindSafe for PiopParams<F, Curve>where
F: RefUnwindSafe,
impl<F, Curve> Send for PiopParams<F, Curve>
impl<F, Curve> Sync for PiopParams<F, Curve>
impl<F, Curve> Unpin for PiopParams<F, Curve>where
F: Unpin,
impl<F, Curve> UnwindSafe for PiopParams<F, Curve>where
F: UnwindSafe,
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<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