Struct snarkvm_fields::fp6_2over3::Fp6 [−][src]
pub struct Fp6<P: Fp6Parameters> { pub c0: Fp3<P::Fp3Params>, pub c1: Fp3<P::Fp3Params>, // some fields omitted }
Fields
c0: Fp3<P::Fp3Params>
c1: Fp3<P::Fp3Params>
Implementations
pub fn mul_by_034(
&mut self,
c0: &<P::Fp3Params as Fp3Parameters>::Fp,
c3: &<P::Fp3Params as Fp3Parameters>::Fp,
c4: &<P::Fp3Params as Fp3Parameters>::Fp
)
[src]pub fn mul_by_014(
&mut self,
c0: &<P::Fp3Params as Fp3Parameters>::Fp,
c1: &<P::Fp3Params as Fp3Parameters>::Fp,
c4: &<P::Fp3Params as Fp3Parameters>::Fp
)
[src]Multiply by quadratic nonresidue v.
Trait Implementations
Performs the +=
operation. Read more
Reads Self
from reader
.
fn deserialize_uncompressed<R>(
reader: &mut R
) -> Result<Self, SerializationError> where
R: Read,
[src]
fn deserialize_uncompressed<R>(
reader: &mut R
) -> Result<Self, SerializationError> where
R: Read,
[src]Reads Self
from reader
without compression.
fn deserialize_with_flags<R: Read, F: Flags>(
reader: &mut R
) -> Result<(Self, F), SerializationError>
[src]
fn deserialize_with_flags<R: Read, F: Flags>(
reader: &mut R
) -> Result<(Self, F), SerializationError>
[src]Reads Self
and Flags
from reader
.
Returns empty flags by default. Read more
Serializes self
into writer
.
fn serialize_uncompressed<W>(
&self,
writer: &mut W
) -> Result<(), SerializationError> where
W: Write,
[src]
fn serialize_uncompressed<W>(
&self,
writer: &mut W
) -> Result<(), SerializationError> where
W: Write,
[src]Serializes self
into writer
without compression.
fn serialize_with_flags<W: Write, F: Flags>(
&self,
writer: &mut W,
flags: F
) -> Result<(), SerializationError>
[src]
fn serialize_with_flags<W: Write, F: Flags>(
&self,
writer: &mut W,
flags: F
) -> Result<(), SerializationError>
[src]Serializes self
and flags
into writer
.
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Performs the /=
operation. Read more
Returns the characteristic of the field.
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
Performs the *=
operation. Read more
Fp6
elements are ordered lexicographically.
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
Auto Trait Implementations
impl<P> RefUnwindSafe for Fp6<P> where
P: RefUnwindSafe,
<<P as Fp6Parameters>::Fp3Params as Fp3Parameters>::Fp: RefUnwindSafe,
<P as Fp6Parameters>::Fp3Params: RefUnwindSafe,
impl<P> Unpin for Fp6<P> where
P: Unpin,
<<P as Fp6Parameters>::Fp3Params as Fp3Parameters>::Fp: Unpin,
<P as Fp6Parameters>::Fp3Params: Unpin,
impl<P> UnwindSafe for Fp6<P> where
P: UnwindSafe,
<<P as Fp6Parameters>::Fp3Params as Fp3Parameters>::Fp: UnwindSafe,
<P as Fp6Parameters>::Fp3Params: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V