Struct snarkvm_fields::Fp384 [−][src]
pub struct Fp384<P: Fp384Parameters>(pub BigInteger, _);
Tuple Fields
0: BigInteger
Implementations
Trait Implementations
Performs the +=
operation. Read more
Performs the +=
operation. Read more
Performs the +=
operation. Read more
Performs the +=
operation. Read more
Reads Self
from reader
.
fn deserialize_uncompressed<R>(
reader: &mut R
) -> Result<Self, SerializationError> where
R: Read,
fn deserialize_uncompressed<R>(
reader: &mut R
) -> Result<Self, SerializationError> where
R: Read,
Reads Self
from reader
without compression.
fn deserialize_with_flags<R: Read, F: Flags>(
reader: &mut R
) -> Result<(Self, F), SerializationError>
fn deserialize_with_flags<R: Read, F: Flags>(
reader: &mut R
) -> Result<(Self, F), SerializationError>
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,
fn serialize_uncompressed<W>(
&self,
writer: &mut W
) -> Result<(), SerializationError> where
W: Write,
Serializes self
into writer
without compression.
fn serialize_with_flags<W: Write, F: Flags>(
&self,
writer: &mut W,
flags: F
) -> Result<(), SerializationError>
fn serialize_with_flags<W: Write, F: Flags>(
&self,
writer: &mut W,
flags: F
) -> Result<(), SerializationError>
Serializes self
and flags
into writer
.
Deserialize this value from the given Serde deserializer. Read more
Generate a random value of T
, using rng
as the source of randomness.
Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
Performs the /=
operation. Read more
Performs the /=
operation. Read more
Performs the /=
operation. Read more
Performs the /=
operation. Read more
type FftParameters = P
Returns the 2^s root of unity.
Returns the 2^s * small_subgroup_base^small_subgroup_base_adicity root of unity if a small subgroup is defined. Read more
Returns the multiplicative generator of char()
- 1 order.
Returns the root of unity of order n, if one exists.
If no small multiplicative subgroup is defined, this is the 2-adic root of unity of order n
(for n a power of 2).
If a small multiplicative subgroup is defined, this is the root of unity of order n for
the larger subgroup generated by FftParams::LARGE_SUBGROUP_ROOT_OF_UNITY
(for n = 2^i * FftParams::SMALL_SUBGROUP_BASE^j for some i, j). Read more
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
Doubles self
in place.
Returns the characteristic of the field.
Squares self
in place.
Computes the multiplicative inverse of self
if self
is nonzero.
Sets self
to self
’s inverse if it exists. Otherwise it is a no-op.
Exponentiates this element by a power of the base prime modulus via the Frobenius automorphism. Read more
Exponentiates this element by a number represented with u64
limbs,
least significant limb first. Read more
Performs the conversion.
Performs the *=
operation. Read more
Performs the *=
operation. Read more
Performs the *=
operation. Read more
Performs the *=
operation. Read more
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
type BigInteger = BigInteger
type Parameters = P
Returns a prime field element from its underlying representation.
Returns the underlying representation of the prime field element.
Returns a prime field element from its underlying raw representation.
Returns the underlying raw representation of the prime field element.
Returns the field size in bits.
Returns the trace.
Returns the trace minus one divided by two.
Returns the modulus minus one divided by two.
Returns the Legendre symbol.
Sets self
to be the square root of self
, if it exists.
Performs the -=
operation. Read more
Performs the -=
operation. Read more
Performs the -=
operation. Read more
Performs the -=
operation. Read more
Auto Trait Implementations
impl<P> RefUnwindSafe for Fp384<P> where
P: RefUnwindSafe,
impl<P> UnwindSafe for Fp384<P> where
P: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more