Struct snarkvm_fields::Fp768[][src]

pub struct Fp768<P: Fp768Parameters>(pub BigInteger, _);

Implementations

Trait Implementations

The resulting type after applying the + operator.

Performs the + operation. Read more

Performs the += operation. Read more

Reads Self from reader.

Reads Self from reader without compression.

Reads Self and Flags from reader. Returns empty flags by default. Read more

Serializes self into writer.

Serializes self into writer without compression.

Serializes self and flags into writer.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. 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

Create a distribution of values of ‘S’ by mapping the output of Self through the closure F Read more

The resulting type after applying the / operator.

Performs the / operation. Read more

Performs the /= operation. 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

Returns self + self.

Doubles self in place.

Returns the characteristic of the field.

Returns self * self.

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

Exponentiates this element by a number represented with u64 limbs, least significant limb first. 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

Attempts to convert an integer into a field element. Panics if the provided integer is invalid (e.g. larger than the field modulus).

Attempts to convert an integer into a field element. Panics if the provided integer is invalid (e.g. larger than the field modulus).

Attempts to convert an integer into a field element. Panics if the provided integer is invalid (e.g. larger than the field modulus).

Attempts to convert an integer into a field element. Panics if the provided integer is invalid (e.g. larger than the field modulus).

Attempts to convert an integer into a field element. Panics if the provided integer is invalid (e.g. larger than the field modulus).

Reads Self from reader.

Interpret a string of numbers as a (congruent) prime field element. Does not accept unnecessary leading zeroes or a blank string.

The associated error which can be returned from parsing.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Performs the conversion.

The resulting type after applying the * operator.

Performs the * operation. Read more

Performs the *= operation. Read more

The resulting type after applying the - operator.

Performs the unary - operation. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

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 multiplicative generator of char() - 1 order.

Returns the 2^s root of unity.

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.

Return the a QNR^T

Serialize this value into the given Serde serializer. Read more

Returns the Legendre symbol.

Returns the square root of self, if it exists.

Sets self to be the square root of self, if it exists.

The resulting type after applying the - operator.

Performs the - operation. Read more

Performs the -= operation. Read more

Serializes self into writer.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.