Type Alias Affine

Source
pub type Affine = EqAffine;
Expand description

A Vesta point in the affine coordinate space (or the point at infinity).

Aliased Type§

struct Affine { /* private fields */ }

Trait Implementations

Source§

impl<'b> Add<&'b Eq> for EqAffine

Source§

type Output = Eq

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'b Eq) -> Eq

Performs the + operation. Read more
Source§

impl<'b> Add<&'b EqAffine> for EqAffine

Source§

type Output = Eq

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &'b EqAffine) -> Eq

Performs the + operation. Read more
Source§

impl Add<Eq> for EqAffine

Source§

type Output = Eq

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Eq) -> Eq

Performs the + operation. Read more
Source§

impl Add for EqAffine

Source§

type Output = Eq

The resulting type after applying the + operator.
Source§

fn add(self, rhs: EqAffine) -> Eq

Performs the + operation. Read more
Source§

impl Clone for EqAffine

Source§

fn clone(&self) -> EqAffine

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl CofactorCurveAffine for EqAffine

Source§

type Curve = Eq

Source§

type Scalar = Fp

Source§

fn identity() -> Self

Returns the additive identity.
Source§

fn generator() -> Self

Returns a fixed generator of unknown exponent.
Source§

fn is_identity(&self) -> Choice

Determines if this point represents the point at infinity; the additive identity.
Source§

fn to_curve(&self) -> Self::Curve

Converts this element to its curve representation.
Source§

impl ConditionallySelectable for EqAffine

Source§

fn conditional_select(a: &Self, b: &Self, choice: Choice) -> Self

Select a or b according to choice. Read more
Source§

fn conditional_assign(&mut self, other: &Self, choice: Choice)

Conditionally assign other to self, according to choice. Read more
Source§

fn conditional_swap(a: &mut Self, b: &mut Self, choice: Choice)

Conditionally swap self and other if choice == 1; otherwise, reassign both unto themselves. Read more
Source§

impl ConstantTimeEq for EqAffine

Source§

fn ct_eq(&self, other: &Self) -> Choice

Determine if two items are equal. Read more
Source§

fn ct_ne(&self, other: &Self) -> Choice

Determine if two items are NOT equal. Read more
Source§

impl CurveAffine for EqAffine

Source§

type ScalarExt = Fp

The scalar field of this elliptic curve.
Source§

type Base = Fq

The base field over which this elliptic curve is constructed.
Source§

type CurveExt = Eq

The projective form of the curve
Source§

fn is_on_curve(&self) -> Choice

Returns whether or not this element is on the curve; should always be true unless an “unchecked” API was used.
Source§

fn coordinates(&self) -> CtOption<Coordinates<Self>>

Gets the coordinates of this point. Read more
Source§

fn from_xy(x: Self::Base, y: Self::Base) -> CtOption<Self>

Obtains a point given $(x, y)$, failing if it is not on the curve.
Source§

fn a() -> Self::Base

Returns the curve constant $a$.
Source§

fn b() -> Self::Base

Returns the curve constant $b$.
Source§

impl Debug for EqAffine

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for EqAffine

Source§

fn default() -> EqAffine

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

impl<'a> From<&'a Eq> for EqAffine

Source§

fn from(p: &'a Eq) -> EqAffine

Converts to this type from the input type.
Source§

impl From<Eq> for EqAffine

Source§

fn from(p: Eq) -> EqAffine

Converts to this type from the input type.
Source§

impl GroupEncoding for EqAffine

Source§

type Repr = [u8; 32]

The encoding of group elements. Read more
Source§

fn from_bytes(bytes: &[u8; 32]) -> CtOption<Self>

Attempts to deserialize a group element from its encoding.
Source§

fn from_bytes_unchecked(bytes: &Self::Repr) -> CtOption<Self>

Attempts to deserialize a group element, not checking if the element is valid. Read more
Source§

fn to_bytes(&self) -> [u8; 32]

Converts this element into its byte encoding. This may or may not support encoding the identity.
Source§

impl<'b> Mul<&'b Fp> for EqAffine

Source§

type Output = Eq

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'b Fp) -> Eq

Performs the * operation. Read more
Source§

impl Mul<Fp> for EqAffine

Source§

type Output = Eq

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Fp) -> Eq

Performs the * operation. Read more
Source§

impl Neg for EqAffine

Source§

type Output = EqAffine

The resulting type after applying the - operator.
Source§

fn neg(self) -> EqAffine

Performs the unary - operation. Read more
Source§

impl PartialEq for EqAffine

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PrimeCurveAffine for EqAffine

Source§

type Curve = Eq

Source§

type Scalar = Fp

Source§

fn generator() -> Self

Returns a fixed generator of unknown exponent.
Source§

fn identity() -> Self

Returns the additive identity.
Source§

fn is_identity(&self) -> Choice

Determines if this point represents the point at infinity; the additive identity.
Source§

fn to_curve(&self) -> Self::Curve

Converts this element to its curve representation.
Source§

impl<'b> Sub<&'b Eq> for EqAffine

Source§

type Output = Eq

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'b Eq) -> Eq

Performs the - operation. Read more
Source§

impl<'b> Sub<&'b EqAffine> for EqAffine

Source§

type Output = Eq

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &'b EqAffine) -> Eq

Performs the - operation. Read more
Source§

impl Sub<Eq> for EqAffine

Source§

type Output = Eq

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Eq) -> Eq

Performs the - operation. Read more
Source§

impl Sub for EqAffine

Source§

type Output = Eq

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: EqAffine) -> Eq

Performs the - operation. Read more
Source§

impl Copy for EqAffine

Source§

impl Eq for EqAffine