Type Alias Affine

Source
pub type Affine = EpAffine;
Expand description

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

Aliased Type§

struct Affine { /* private fields */ }

Trait Implementations

Source§

impl<'b> Add<&'b Ep> for EpAffine

Source§

type Output = Ep

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

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

Source§

type Output = Ep

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<Ep> for EpAffine

Source§

type Output = Ep

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add for EpAffine

Source§

type Output = Ep

The resulting type after applying the + operator.
Source§

fn add(self, rhs: EpAffine) -> Ep

Performs the + operation. Read more
Source§

impl Clone for EpAffine

Source§

fn clone(&self) -> EpAffine

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 EpAffine

Source§

type Curve = Ep

Source§

type Scalar = Fq

Source§

fn identity() -> EpAffine

Returns the additive identity.
Source§

fn generator() -> EpAffine

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) -> <EpAffine as CofactorCurveAffine>::Curve

Converts this element to its curve representation.
Source§

impl ConditionallySelectable for EpAffine

Source§

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

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 EpAffine

Source§

fn ct_eq(&self, other: &EpAffine) -> 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 EpAffine

Source§

type ScalarExt = Fq

The scalar field of this elliptic curve.
Source§

type Base = Fp

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

type CurveExt = Ep

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<EpAffine>>

Gets the coordinates of this point. Read more
Source§

fn from_xy( x: <EpAffine as CurveAffine>::Base, y: <EpAffine as CurveAffine>::Base, ) -> CtOption<EpAffine>

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

fn a() -> <EpAffine as CurveAffine>::Base

Returns the curve constant $a$.
Source§

fn b() -> <EpAffine as CurveAffine>::Base

Returns the curve constant $b$.
Source§

impl Debug for EpAffine

Source§

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

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

impl Default for EpAffine

Source§

fn default() -> EpAffine

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

impl<'a> From<&'a Ep> for EpAffine

Source§

fn from(p: &'a Ep) -> EpAffine

Converts to this type from the input type.
Source§

impl From<Ep> for EpAffine

Source§

fn from(p: Ep) -> EpAffine

Converts to this type from the input type.
Source§

impl GroupEncoding for EpAffine

Source§

type Repr = [u8; 32]

The encoding of group elements. Read more
Source§

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

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

fn from_bytes_unchecked( bytes: &<EpAffine as GroupEncoding>::Repr, ) -> CtOption<EpAffine>

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 Fq> for EpAffine

Source§

type Output = Ep

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &'b Fq) -> Ep

Performs the * operation. Read more
Source§

impl Mul<Fq> for EpAffine

Source§

type Output = Ep

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Fq) -> Ep

Performs the * operation. Read more
Source§

impl Neg for EpAffine

Source§

type Output = EpAffine

The resulting type after applying the - operator.
Source§

fn neg(self) -> EpAffine

Performs the unary - operation. Read more
Source§

impl PartialEq for EpAffine

Source§

fn eq(&self, other: &EpAffine) -> 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 EpAffine

Source§

type Curve = Ep

Source§

type Scalar = Fq

Source§

fn generator() -> EpAffine

Returns a fixed generator of unknown exponent.
Source§

fn identity() -> EpAffine

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) -> <EpAffine as PrimeCurveAffine>::Curve

Converts this element to its curve representation.
Source§

impl<'b> Sub<&'b Ep> for EpAffine

Source§

type Output = Ep

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

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

Source§

type Output = Ep

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<Ep> for EpAffine

Source§

type Output = Ep

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub for EpAffine

Source§

type Output = Ep

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: EpAffine) -> Ep

Performs the - operation. Read more
Source§

impl Copy for EpAffine

Source§

impl Eq for EpAffine