ark_test_curves

Struct Fp3ConfigWrapper

Source
pub struct Fp3ConfigWrapper<P>(/* private fields */)
where
    P: Fp3Config;
Expand description

Wrapper for Fp3Config, allowing combination of the Fp3Config and CubicExtConfig traits.

Trait Implementations§

Source§

impl<P> CubicExtConfig for Fp3ConfigWrapper<P>
where P: Fp3Config,

Source§

const DEGREE_OVER_BASE_PRIME_FIELD: usize = 3usize

The degree of the extension over the base prime field.
Source§

const NONRESIDUE: <Fp3ConfigWrapper<P> as CubicExtConfig>::BaseField = P::NONRESIDUE

The cubic non-residue used to construct the extension.
Source§

const SQRT_PRECOMP: Option<SqrtPrecomputation<CubicExtField<Fp3ConfigWrapper<P>>>> = _

Determines the algorithm for computing square roots.
Source§

const FROBENIUS_COEFF_C1: &'static [<Fp3ConfigWrapper<P> as CubicExtConfig>::FrobCoeff] = P::FROBENIUS_COEFF_FP3_C1

Coefficients for the Frobenius automorphism.
Source§

const FROBENIUS_COEFF_C2: &'static [<Fp3ConfigWrapper<P> as CubicExtConfig>::FrobCoeff] = P::FROBENIUS_COEFF_FP3_C2

Source§

type BasePrimeField = <P as Fp3Config>::Fp

The prime field that this cubic extension is eventually an extension of.
Source§

type BaseField = <P as Fp3Config>::Fp

The base field that this field is a cubic extension of. Read more
Source§

type FrobCoeff = <P as Fp3Config>::Fp

The type of the coefficients for an efficient implementation of the Frobenius endomorphism.
Source§

fn mul_base_field_by_nonresidue_in_place( fe: &mut <Fp3ConfigWrapper<P> as CubicExtConfig>::BaseField, ) -> &mut <Fp3ConfigWrapper<P> as CubicExtConfig>::BaseField

A specializable method for multiplying an element of the base field by the quadratic non-residue. This is used in multiplication and squaring.
Source§

fn mul_base_field_by_frob_coeff( c1: &mut <Fp3ConfigWrapper<P> as CubicExtConfig>::BaseField, c2: &mut <Fp3ConfigWrapper<P> as CubicExtConfig>::BaseField, power: usize, )

A specializable method for multiplying an element of the base field by the appropriate Frobenius coefficient.
Source§

fn mul_base_field_by_nonresidue(fe: Self::BaseField) -> Self::BaseField

A defaulted method for multiplying an element of the base field by the quadratic non-residue. This is used in multiplication and squaring.

Auto Trait Implementations§

§

impl<P> Freeze for Fp3ConfigWrapper<P>

§

impl<P> RefUnwindSafe for Fp3ConfigWrapper<P>
where P: RefUnwindSafe,

§

impl<P> Send for Fp3ConfigWrapper<P>

§

impl<P> Sync for Fp3ConfigWrapper<P>

§

impl<P> Unpin for Fp3ConfigWrapper<P>
where P: Unpin,

§

impl<P> UnwindSafe for Fp3ConfigWrapper<P>
where P: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V