Trait pairing_ce::GenericCurveAffine [−][src]
Affine representation of an elliptic curve point guaranteed to be in the correct prime order subgroup.
Associated Types
type Scalar: PrimeField
[src]
type Base: SqrtField
[src]
type Projective: GenericCurveProjective<Affine = Self, Scalar = Self::Scalar>
[src]
Required methods
fn zero() -> Self
[src]
Returns the additive identity.
fn one() -> Self
[src]
Returns a fixed generator of unknown exponent.
fn is_zero(&self) -> bool
[src]
Determines if this point represents the point at infinity; the additive identity.
fn negate(&mut self)
[src]
Negates this element.
fn mul<S: Into<<Self::Scalar as PrimeField>::Repr>>(
&self,
other: S
) -> Self::Projective
[src]
&self,
other: S
) -> Self::Projective
Performs scalar multiplication of this element with mixed addition.
fn into_projective(&self) -> Self::Projective
[src]
Converts this element into its affine representation.
fn as_xy(&self) -> (&Self::Base, &Self::Base)
[src]
Returns references to underlying X and Y coordinates. Users should check for infinity outside of this call
fn into_xy_unchecked(self) -> (Self::Base, Self::Base)
[src]
Returns underlying X and Y coordinates. Users should check for infinity outside of this call
fn from_xy_unchecked(x: Self::Base, y: Self::Base) -> Self
[src]
Creates a point from raw X and Y coordinates. Point of infinity is encoded as (0,0) by default. On-curve check is NOT performed
fn from_xy_checked(
x: Self::Base,
y: Self::Base
) -> Result<Self, GroupDecodingError>
[src]
x: Self::Base,
y: Self::Base
) -> Result<Self, GroupDecodingError>
Creates a point from raw X and Y coordinates. Point of infinity is encoded as (0,0) by default. On-curve check is performed
fn a_coeff() -> Self::Base
[src]
returns A coefficient for a short Weierstrass form
fn b_coeff() -> Self::Base
[src]
returns B coefficient for a short Weierstrass form
Implementors
impl<G: CurveAffine> GenericCurveAffine for G
[src]
type Scalar = Self::Scalar
type Base = Self::Base
type Projective = Self::Projective
fn zero() -> Self
[src]
Returns the additive identity.
fn one() -> Self
[src]
Returns a fixed generator of unknown exponent.
fn is_zero(&self) -> bool
[src]
Determines if this point is the point at infinity.
fn negate(&mut self)
[src]
Negates this element.
fn mul<S: Into<<Self::Scalar as PrimeField>::Repr>>(
&self,
other: S
) -> Self::Projective
[src]
&self,
other: S
) -> Self::Projective
Performs scalar multiplication of this element with mixed addition.
fn into_projective(&self) -> Self::Projective
[src]
Converts this element into its affine representation.
fn as_xy(&self) -> (&Self::Base, &Self::Base)
[src]
Returns references to underlying X and Y coordinates. Users should check for infinity outside of this call
fn into_xy_unchecked(self) -> (Self::Base, Self::Base)
[src]
Returns underlying X and Y coordinates. Users should check for infinity outside of this call
fn from_xy_unchecked(x: Self::Base, y: Self::Base) -> Self
[src]
Creates a point from raw X and Y coordinates. Point of infinity is encoded as (0,0) by default. On-curve check is NOT performed
fn from_xy_checked(
x: Self::Base,
y: Self::Base
) -> Result<Self, GroupDecodingError>
[src]
x: Self::Base,
y: Self::Base
) -> Result<Self, GroupDecodingError>
Creates a point from raw X and Y coordinates. Point of infinity is encoded as (0,0) by default. On-curve check is performed
fn a_coeff() -> Self::Base
[src]
returns A coefficient for a short Weierstrass form
fn b_coeff() -> Self::Base
[src]
returns B coefficient for a short Weierstrass form