Struct snarkvm_curves::templates::short_weierstrass::short_weierstrass_jacobian::GroupAffine[][src]

pub struct GroupAffine<P: Parameters> {
    pub x: P::BaseField,
    pub y: P::BaseField,
    pub infinity: bool,
    // some fields omitted
}

Fields

x: P::BaseFieldy: P::BaseFieldinfinity: bool

Implementations

Trait Implementations

Attempts to construct an affine point given an x-coordinate. The point is not guaranteed to be in the prime order subgroup.

If and only if greatest is set will the lexicographically largest y-coordinate be selected.

Attempts to construct an affine point given a y-coordinate. The point is not guaranteed to be in the prime order subgroup.

If and only if greatest is set will the lexicographically largest y-coordinate be selected.

Checks that the current point is on the elliptic curve.

Returns a group element if the set of bytes forms a valid group element, otherwise returns None. This function is primarily intended for sampling random group elements from a hash-function or RNG output. Read more

Returns a fixed generator of unknown exponent.

Performs the standard addition operation of this element with a given other element.

Performs scalar multiplication of this element with mixed addition.

Multiply this element by the cofactor and output the resulting projective element. Read more

Multiply this element by the inverse of the cofactor modulo the size of Self::ScalarField. Read more

Converts this element into its projective representation.

Checks that the point is in the prime order subgroup given the point on the curve.

Returns the x-coordinate of the point.

Returns the y-coordinate of the point.

Multiply this element by the cofactor.

Reads Self from reader.

Reads Self from reader without compression.

Serializes self into writer.

Serializes self into writer without compression.

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

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Reads Self from reader.

Feeds this value into the given Hasher. Read more

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

The resulting type after applying the - operator.

Performs the unary - operation. Read more

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

This method tests for !=.

Serialize this value into the given Serde serializer. 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.