Struct ark_ec::models::short_weierstrass_jacobian::GroupAffine [−][src]
Fields
x: P::BaseField
y: P::BaseField
infinity: 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.
fn add(self, other: Self) -> Self
[src]
impl<'a, P: Parameters> AddAssign<&'a GroupAffine<P>> for GroupAffine<P>
[src]
fn add_assign(&mut self, other: &'a Self)
[src]
impl<P: Parameters> AffineCurve for GroupAffine<P>
[src]
const COFACTOR: &'static [u64]
[src]
type BaseField = P::BaseField
type ScalarField = P::ScalarField
type Projective = GroupProjective<P>
fn prime_subgroup_generator() -> Self
[src]
fn from_random_bytes(bytes: &[u8]) -> Option<Self>
[src]
fn mul<S: Into<<Self::ScalarField as PrimeField>::BigInt>>(
&self,
by: S
) -> GroupProjective<P>
[src]
&self,
by: S
) -> GroupProjective<P>
fn mul_by_cofactor_to_projective(&self) -> Self::Projective
[src]
fn mul_by_cofactor_inv(&self) -> Self
[src]
fn into_projective(&self) -> Self::Projective
[src]
#[must_use]fn mul_by_cofactor(&self) -> Self
[src]
impl<P: Parameters> CanonicalDeserialize for GroupAffine<P>
[src]
fn deserialize<R: Read>(reader: R) -> Result<Self, SerializationError>
[src]
fn deserialize_uncompressed<R: Read>(
reader: R
) -> Result<Self, SerializationError>
[src]
reader: R
) -> Result<Self, SerializationError>
fn deserialize_unchecked<R: Read>(reader: R) -> Result<Self, SerializationError>
[src]
impl<P: Parameters> CanonicalSerialize for GroupAffine<P>
[src]
fn serialize<W: Write>(&self, writer: W) -> Result<(), SerializationError>
[src]
fn serialized_size(&self) -> usize
[src]
fn serialize_uncompressed<W: Write>(
&self,
writer: W
) -> Result<(), SerializationError>
[src]
&self,
writer: W
) -> Result<(), SerializationError>
fn uncompressed_size(&self) -> usize
[src]
pub fn serialize_unchecked<W>(
&self,
writer: W
) -> Result<(), SerializationError> where
W: Write,
[src]
&self,
writer: W
) -> Result<(), SerializationError> where
W: Write,
impl<P: Parameters> Clone for GroupAffine<P> where
P: Parameters,
[src]
P: Parameters,
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<P: Parameters> Copy for GroupAffine<P> where
P: Parameters,
[src]
P: Parameters,
impl<P: Parameters> Debug for GroupAffine<P> where
P: Parameters,
[src]
P: Parameters,
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]
P: Parameters,
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]
fn from(p: GroupAffine<P>) -> GroupProjective<P>
[src]
impl<P: Parameters> From<GroupProjective<P>> for GroupAffine<P>
[src]
fn from(p: GroupProjective<P>) -> GroupAffine<P>
[src]
impl<P: Parameters> FromBytes for GroupAffine<P>
[src]
impl<P: Parameters> Hash for GroupAffine<P> where
P: Parameters,
[src]
P: Parameters,
fn hash<__HP>(&self, __state: &mut __HP) where
__HP: Hasher,
[src]
__HP: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<P: Parameters> Neg for GroupAffine<P>
[src]
impl<P: Parameters> PartialEq<GroupAffine<P>> for GroupAffine<P> where
P: Parameters,
[src]
P: Parameters,
impl<P: Parameters> PartialEq<GroupAffine<P>> for GroupProjective<P>
[src]
fn eq(&self, other: &GroupAffine<P>) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<P: Parameters> PartialEq<GroupProjective<P>> for GroupAffine<P>
[src]
fn eq(&self, other: &GroupProjective<P>) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[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]
M::BaseField: ToConstraintField<ConstraintF>,
fn to_field_elements(&self) -> Option<Vec<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,
P: Unpin,
<P as ModelParameters>::BaseField: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,