Struct ark_ec::models::short_weierstrass_jacobian::GroupAffine[][src]

#[must_use]
pub struct GroupAffine<P: Parameters> { pub x: P::BaseField, pub y: P::BaseField, pub infinity: bool, // some fields omitted }
Expand description

Affine coordinates for a point on an elliptic curve in short Weierstrass form, over the base field P::BaseField.

Fields

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

Implementations

Multiply self by the cofactor of the curve, P::COFACTOR.

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.

Checks if self is a valid point on the curve.

Checks if self is in the subgroup having order that equaling that of P::ScalarField.

Trait Implementations

The resulting type after applying the + operator.

Performs the + operation. Read more

Performs the += operation. Read more

Returns a fixed generator of unknown exponent.

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

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 in Self::ScalarField. Read more

Converts self into the projective representation.

Multiply this element by the cofactor.

Reads Self from reader.

Reads Self from reader without compression.

Reads self from reader without compression, and without performing validity checks. Should be used only when the input is trusted. Read more

Serializes self into writer. It is left up to a particular type for how it strikes the serialization efficiency vs compression tradeoff. For standard types (e.g. bool, lengths, etc.) typically an uncompressed form is used, whereas for algebraic types compressed forms are used. Read more

Serializes self into writer without compression.

Serializes self into writer without compression, and without performing validity checks. Should be used only when there is no danger of adversarial manipulation of the output. Read more

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

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

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

If self.is_zero(), returns self (== Self::zero()). Else, returns (x, -y), where self = (x, y).

The resulting type after applying the - operator.

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

This method tests for !=.

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

This method tests for !=.

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

This method tests for !=.

Method which takes an iterator and generates Self from the elements by “summing up” the items. Read more

Method which takes an iterator and generates Self from the elements by “summing up” the items. Read more

Serializes self into writer.

Returns the point at infinity. Note that in affine coordinates, the point at infinity does not lie on the curve, and this is indicated by setting the infinity flag to true.

Checks if self is the point at infinity.

Sets self to the additive identity element of Self, 0.

Zero out this object from memory using Rust intrinsics which ensure the zeroization operation is not “optimized away” by the compiler. Read more

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.

Should always be Self

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.