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
}

Fields

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

Implementations

impl<P: Parameters> GroupAffine<P>[src]

pub fn new(x: P::BaseField, y: P::BaseField, infinity: bool) -> Self[src]

pub fn scale_by_cofactor(&self) -> GroupProjective<P>[src]

pub fn get_point_from_x(x: P::BaseField, greatest: bool) -> Option<Self>[src]

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.

pub fn is_on_curve(&self) -> bool[src]

pub fn is_in_correct_subgroup_assuming_on_curve(&self) -> bool[src]

Trait Implementations

impl<P: Parameters> Add<GroupAffine<P>> for GroupAffine<P>[src]

type Output = Self

The resulting type after applying the + operator.

impl<'a, P: Parameters> AddAssign<&'a GroupAffine<P>> for GroupAffine<P>[src]

impl<P: Parameters> AffineCurve for GroupAffine<P>[src]

type BaseField = P::BaseField

type ScalarField = P::ScalarField

type Projective = GroupProjective<P>

impl<P: Parameters> CanonicalDeserialize for GroupAffine<P>[src]

impl<P: Parameters> CanonicalSerialize for GroupAffine<P>[src]

impl<P: Parameters> Clone for GroupAffine<P> where
    P: Parameters
[src]

impl<P: Parameters> Copy for GroupAffine<P> where
    P: Parameters
[src]

impl<P: Parameters> Debug for GroupAffine<P> where
    P: Parameters
[src]

impl<P: Parameters> Default for GroupAffine<P>[src]

impl<P: Parameters> Display for GroupAffine<P>[src]

impl<P: Parameters> Eq for GroupAffine<P> where
    P: Parameters
[src]

impl<P: BW6Parameters> From<GroupAffine<<P as BW6Parameters>::G1Parameters>> for G1Prepared<P>[src]

impl<P: BW6Parameters> From<GroupAffine<<P as BW6Parameters>::G2Parameters>> for G2Prepared<P>[src]

impl<P: Bls12Parameters> From<GroupAffine<<P as Bls12Parameters>::G1Parameters>> for G1Prepared<P>[src]

impl<P: Bls12Parameters> From<GroupAffine<<P as Bls12Parameters>::G2Parameters>> for G2Prepared<P>[src]

impl<P: BnParameters> From<GroupAffine<<P as BnParameters>::G1Parameters>> for G1Prepared<P>[src]

impl<P: BnParameters> From<GroupAffine<<P as BnParameters>::G2Parameters>> for G2Prepared<P>[src]

impl<P: MNT4Parameters> From<GroupAffine<<P as MNT4Parameters>::G1Parameters>> for G1Prepared<P>[src]

impl<P: MNT4Parameters> From<GroupAffine<<P as MNT4Parameters>::G2Parameters>> for G2Prepared<P>[src]

impl<P: MNT6Parameters> From<GroupAffine<<P as MNT6Parameters>::G1Parameters>> for G1Prepared<P>[src]

impl<P: MNT6Parameters> From<GroupAffine<<P as MNT6Parameters>::G2Parameters>> for G2Prepared<P>[src]

impl<P: Parameters> From<GroupAffine<P>> for GroupProjective<P>[src]

impl<P: Parameters> From<GroupProjective<P>> for GroupAffine<P>[src]

impl<P: Parameters> FromBytes for GroupAffine<P>[src]

impl<P: Parameters> Hash for GroupAffine<P> where
    P: Parameters
[src]

impl<P: Parameters> Neg for GroupAffine<P>[src]

type Output = Self

The resulting type after applying the - operator.

impl<P: Parameters> PartialEq<GroupAffine<P>> for GroupAffine<P> where
    P: Parameters
[src]

impl<P: Parameters> PartialEq<GroupAffine<P>> for GroupProjective<P>[src]

impl<P: Parameters> PartialEq<GroupProjective<P>> for GroupAffine<P>[src]

impl<P: Parameters> ToBytes for GroupAffine<P>[src]

impl<M: Parameters, ConstraintF: Field> ToConstraintField<ConstraintF> for GroupAffine<M> where
    M::BaseField: ToConstraintField<ConstraintF>, 
[src]

impl<P: Parameters> Zero for GroupAffine<P>[src]

impl<P: Parameters> Zeroize for GroupAffine<P>[src]

Auto Trait Implementations

impl<P> Send for GroupAffine<P>

impl<P> Sync for GroupAffine<P>

impl<P> Unpin for GroupAffine<P> where
    P: Unpin,
    <P as ModelParameters>::BaseField: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,