Struct gridiron::fp_480::Fp480[][src]

pub struct Fp480 { /* fields omitted */ }

Methods

impl Fp480
[src]

Take the extra limb and incorporate that into the existing value by modding by the prime.

Take the extra limb and incorporate that into the existing value by modding by the prime.

Convert the value to a byte array which is NUMBYTES long.

Divide the value by 2.

Square the value. Same as a value times itself, but slightly more performant.

Check to see if the value is even.

Create a new instance given the raw limbs form. Note that this is least significant bit first.

Convenience function to create a value from a single limb.

Write out the value in decimal form.

Write out the value in hex.

Create a Non-Adjacent form of the value. return - Vector which represents the NAF of value.

Trait Implementations

impl PartialEq for Fp480
[src]

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

This method tests for !=.

impl Eq for Fp480
[src]

impl Ord for Fp480
[src]

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

impl Clone for Fp480
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Fp480
[src]

impl Debug for Fp480
[src]

Formats the value using the given formatter. Read more

impl Display for Fp480
[src]

Formats the value using the given formatter. Read more

impl LowerHex for Fp480
[src]

Prints the hex value of the number in big endian (most significant digit on the left and least on the right) to make debugging easier.

Formats the value using the given formatter.

impl Deref for Fp480
[src]

The resulting type after dereferencing.

Dereferences the value.

impl PartialOrd for Fp480
[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

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

impl Zero for Fp480
[src]

Returns the additive identity element of Self, 0. Read more

Returns true if self is equal to the additive identity.

impl One for Fp480
[src]

Returns the multiplicative identity element of Self, 1. Read more

Returns true if self is equal to the multiplicative identity. Read more

impl Add for Fp480
[src]

The resulting type after applying the + operator.

Performs the + operation.

impl AddAssign for Fp480
[src]

Performs the += operation.

impl Sub for Fp480
[src]

The resulting type after applying the - operator.

Performs the - operation.

impl SubAssign for Fp480
[src]

Performs the -= operation.

impl Mul for Fp480
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl Mul<u64> for Fp480
[src]

The resulting type after applying the * operator.

Performs the * operation.

impl MulAssign for Fp480
[src]

Performs the *= operation.

impl Inv for Fp480
[src]

The result after applying the operator.

Returns the multiplicative inverse of self. Read more

impl Pow<u64> for Fp480
[src]

The result after applying the operator.

Returns self to the power rhs. Read more

impl Pow<Fp480> for Fp480
[src]

The result after applying the operator.

Returns self to the power rhs. Read more

impl Div for Fp480
[src]

The resulting type after applying the / operator.

Performs the / operation.

impl Neg for Fp480
[src]

The resulting type after applying the - operator.

Performs the unary - operation.

impl BitAnd<Fp480> for Fp480
[src]

The resulting type after applying the & operator.

Performs the & operation.

impl BitAndAssign<Fp480> for Fp480
[src]

Performs the &= operation.

impl BitAnd<u64> for Fp480
[src]

The resulting type after applying the & operator.

Performs the & operation.

impl BitAndAssign<u64> for Fp480
[src]

Performs the &= operation.

impl From<u64> for Fp480
[src]

Performs the conversion.

impl From<u32> for Fp480
[src]

Performs the conversion.

impl From<u8> for Fp480
[src]

Performs the conversion.

impl From<i64> for Fp480
[src]

Performs the conversion.

impl From<i32> for Fp480
[src]

Performs the conversion.

impl From<i8> for Fp480
[src]

Performs the conversion.

impl From<[u8; 60]> for Fp480
[src]

Assume element zero is most sig

Performs the conversion.

impl Default for Fp480
[src]

Returns the "default value" for a type. Read more

impl From<[u8; 64]> for Fp480
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Fp480

impl Sync for Fp480