Type Alias Point

Source
pub type Point = Ep;
Expand description

A Pallas point in the projective coordinate space.

Aliased Type§

struct Point { /* private fields */ }

Implementations

Source§

impl Ep

Source

pub const ISOGENY_CONSTANTS: [Fp; 13]

Constants used for computing the isogeny from IsoEp to Ep.

Source

pub const Z: Fp

Z = -13

Source

pub const THETA: Fp

(F::ROOT_OF_UNITY.invert().unwrap() * z).sqrt().unwrap()

Trait Implementations

Source§

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

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 Ep

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

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 Add for Ep

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<'b> AddAssign<&'b Ep> for Ep

Source§

fn add_assign(&mut self, rhs: &'b Ep)

Performs the += operation. Read more
Source§

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

Source§

fn add_assign(&mut self, rhs: &'b EpAffine)

Performs the += operation. Read more
Source§

impl AddAssign<EpAffine> for Ep

Source§

fn add_assign(&mut self, rhs: EpAffine)

Performs the += operation. Read more
Source§

impl AddAssign for Ep

Source§

fn add_assign(&mut self, rhs: Ep)

Performs the += operation. Read more
Source§

impl Clone for Ep

Source§

fn clone(&self) -> Ep

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 CofactorCurve for Ep

Source§

impl CofactorGroup for Ep

Source§

type Subgroup = Ep

The large prime-order subgroup in which cryptographic operations are performed. If Self implements PrimeGroup, then Self::Subgroup may be Self.
Source§

fn clear_cofactor(&self) -> Self

Maps self to the prime-order subgroup by multiplying this element by some k-multiple of the cofactor. Read more
Source§

fn into_subgroup(self) -> CtOption<Self::Subgroup>

Returns self if it is contained in the prime-order subgroup. Read more
Source§

fn is_torsion_free(&self) -> Choice

Determines if this element is “torsion free”, i.e., is contained in the prime-order subgroup. Read more
Source§

fn is_small_order(&self) -> Choice

Determines if this element is of small order. Read more
Source§

impl ConditionallySelectable for Ep

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 Ep

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 Curve for Ep

Source§

type AffineRepr = EpAffine

The affine representation for this elliptic curve.
Source§

fn batch_normalize(p: &[Self], q: &mut [Self::AffineRepr])

Converts a batch of projective elements into affine elements. This function will panic if p.len() != q.len().
Source§

fn to_affine(&self) -> Self::AffineRepr

Converts this element into its affine representation.
Source§

impl CurveExt for Ep

Source§

fn endo(&self) -> Self

Apply the curve endomorphism by multiplying the x-coordinate by an element of multiplicative order 3.

Source§

const CURVE_ID: &'static str = "pallas"

CURVE_ID used for hash-to-curve.
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 AffineExt = EpAffine

The affine version of the curve
Source§

fn hash_to_curve<'a>(domain_prefix: &'a str) -> Box<dyn Fn(&[u8]) -> Self + 'a>

Requests a hasher that accepts messages and returns near-uniformly distributed elements in the group, given domain prefix domain_prefix. Read more
Source§

fn a() -> Self::Base

Returns the curve constant a.
Source§

fn b() -> Self::Base

Returns the curve constant b.
Source§

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

Obtains a point given Jacobian coordinates $X : Y : Z$, failing if the coordinates are not on the curve.
Source§

fn jacobian_coordinates(&self) -> (Fp, Fp, Fp)

Return the Jacobian coordinates of this point.
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§

impl Debug for Ep

Source§

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

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

impl Default for Ep

Source§

fn default() -> Ep

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

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

Source§

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

Converts to this type from the input type.
Source§

impl From<EpAffine> for Ep

Source§

fn from(p: EpAffine) -> Ep

Converts to this type from the input type.
Source§

impl Group for Ep

Source§

type Scalar = Fq

Scalars modulo the order of this group’s scalar field.
Source§

fn random(rng: impl RngCore) -> Self

Returns an element chosen uniformly at random from the non-identity elements of this group. Read more
Source§

fn generator() -> Self

Returns a fixed generator of the prime-order subgroup.
Source§

fn double(&self) -> Self

Doubles this element.
Source§

fn identity() -> Self

Returns the additive identity, also known as the “neutral element”.
Source§

fn is_identity(&self) -> Choice

Determines if this point is the identity.
Source§

impl GroupEncoding for Ep

Source§

type Repr = [u8; 32]

The encoding of group elements. Read more
Source§

fn from_bytes(bytes: &Self::Repr) -> 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) -> Self::Repr

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

impl<'b> Mul<&'b Fq> for Ep

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 Ep

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<'b> MulAssign<&'b Fq> for Ep

Source§

fn mul_assign(&mut self, rhs: &'b Fq)

Performs the *= operation. Read more
Source§

impl MulAssign<Fq> for Ep

Source§

fn mul_assign(&mut self, rhs: Fq)

Performs the *= operation. Read more
Source§

impl Neg for Ep

Source§

type Output = Ep

The resulting type after applying the - operator.
Source§

fn neg(self) -> Ep

Performs the unary - operation. Read more
Source§

impl PartialEq for Ep

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 PrimeCurve for Ep

Source§

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

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 Ep

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

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 Sub for Ep

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<'b> SubAssign<&'b Ep> for Ep

Source§

fn sub_assign(&mut self, rhs: &'b Ep)

Performs the -= operation. Read more
Source§

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

Source§

fn sub_assign(&mut self, rhs: &'b EpAffine)

Performs the -= operation. Read more
Source§

impl SubAssign<EpAffine> for Ep

Source§

fn sub_assign(&mut self, rhs: EpAffine)

Performs the -= operation. Read more
Source§

impl SubAssign for Ep

Source§

fn sub_assign(&mut self, rhs: Ep)

Performs the -= operation. Read more
Source§

impl<T> Sum<T> for Ep
where T: Borrow<Ep>,

Source§

fn sum<I>(iter: I) -> Self
where I: Iterator<Item = T>,

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl WnafGroup for Ep

Source§

fn recommended_wnaf_for_num_scalars(num_scalars: usize) -> usize

Recommends a wNAF window size given the number of scalars you intend to multiply a base by. Always returns a number between 2 and 22, inclusive.
Source§

impl Copy for Ep

Source§

impl Eq for Ep

Source§

impl PrimeGroup for Ep