Struct ark_ff::fields::models::cubic_extension::CubicExtField [−][src]
pub struct CubicExtField<P: CubicExtParameters> { pub c0: P::BaseField, pub c1: P::BaseField, pub c2: P::BaseField, // some fields omitted }
Fields
c0: P::BaseField
c1: P::BaseField
c2: P::BaseField
Implementations
Trait Implementations
Performs the +=
operation. Read more
Performs the +=
operation. Read more
Performs the +=
operation. Read more
Reads Self
from reader
.
Reads Self
from reader
without compression.
Reads self
from reader
without compression, and without performing
validity checks. Should be used only when the input is trusted. Read more
fn deserialize_with_flags<R: Read, F: Flags>(
reader: R
) -> Result<(Self, F), SerializationError>
[src]
fn deserialize_with_flags<R: Read, F: Flags>(
reader: R
) -> Result<(Self, F), SerializationError>
[src]Reads Self
and Flags
from reader
.
Returns empty flags by default. Read more
Serializes self
into writer
.
It is left up to a particular type for how it strikes the
serialization efficiency vs compression tradeoff.
For standard types (e.g. bool
, lengths, etc.) typically an uncompressed
form is used, whereas for algebraic types compressed forms are used. Read more
fn serialize_uncompressed<W>(&self, writer: W) -> Result<(), SerializationError> where
W: Write,
[src]
fn serialize_uncompressed<W>(&self, writer: W) -> Result<(), SerializationError> where
W: Write,
[src]Serializes self
into writer
without compression.
Serializes self
into writer
without compression, and without
performing validity checks. Should be used only when there is no
danger of adversarial manipulation of the output. Read more
fn serialize_with_flags<W: Write, F: Flags>(
&self,
writer: W,
flags: F
) -> Result<(), SerializationError>
[src]
fn serialize_with_flags<W: Write, F: Flags>(
&self,
writer: W,
flags: F
) -> Result<(), SerializationError>
[src]Serializes self
and flags
into writer
.
Serializes self
and flags
into writer
.
Performs the /=
operation. Read more
Performs the /=
operation. Read more
Performs the /=
operation. Read more
type BasePrimeField = P::BasePrimeField
Returns the extension degree of this field with respect
to Self::BasePrimeField
. Read more
Convert a slice of base prime field elements into a field element. If the slice length != Self::extension_degree(), must return None. Read more
Doubles self
in place.
Returns a field element with an extra sign bit used for group parsing if the set of bytes forms a valid field element, otherwise returns None. This function is primarily intended for sampling random field elements from a hash-function or RNG output. Read more
Returns a field element if the set of bytes forms a valid field element, otherwise returns None. This function is primarily intended for sampling random field elements from a hash-function or RNG output. Read more
Squares self
in place.
Computes the multiplicative inverse of self
if self
is nonzero.
Exponentiates this element by a power of the base prime modulus via the Frobenius automorphism. Read more
Returns the characteristic of the field, in little-endian representation. Read more
Exponentiates this element by a number represented with u64
limbs,
least significant limb first. Read more
Exponentiates a field element f
by a number represented with u64
limbs,
using a precomputed table containing as many powers of 2 of f
as the 1 + the floor of log2 of the exponent exp
, starting from the 1st power.
That is, powers_of_2
should equal &[p, p^2, p^4, ..., p^(2^n)]
when exp
has at most n
bits. Read more
Performs the *=
operation. Read more
Performs the *=
operation. Read more
Performs the *=
operation. Read more
CubicExtField
elements are ordered lexicographically.
impl<P: CubicExtParameters> PartialEq<CubicExtField<P>> for CubicExtField<P> where
P: CubicExtParameters,
[src]
impl<P: CubicExtParameters> PartialEq<CubicExtField<P>> for CubicExtField<P> where
P: CubicExtParameters,
[src]This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Performs the -=
operation. Read more
Performs the -=
operation. Read more
Performs the -=
operation. Read more
impl<P: CubicExtParameters> ToConstraintField<<P as CubicExtParameters>::BasePrimeField> for CubicExtField<P> where
P::BaseField: ToConstraintField<P::BasePrimeField>,
[src]
impl<P: CubicExtParameters> ToConstraintField<<P as CubicExtParameters>::BasePrimeField> for CubicExtField<P> where
P::BaseField: ToConstraintField<P::BasePrimeField>,
[src]Auto Trait Implementations
impl<P> Send for CubicExtField<P>
impl<P> Sync for CubicExtField<P>
impl<P> Unpin for CubicExtField<P> where
P: Unpin,
<P as CubicExtParameters>::BaseField: Unpin,
Blanket Implementations
Mutably borrows from an owned value. Read more
fn hash_uncompressed<H>(&self) -> GenericArray<u8, <H as Digest>::OutputSize> where
H: Digest,
[src]type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V