Struct snarkvm_curves::templates::short_weierstrass::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 is_on_curve(&self) -> bool
[src]
Trait Implementations
impl<P: Parameters> AffineCurve for GroupAffine<P>
[src]
type BaseField = P::BaseField
type Projective = GroupProjective<P>
type ScalarField = P::ScalarField
fn from_random_bytes(bytes: &[u8]) -> Option<Self>
[src]
fn prime_subgroup_generator() -> Self
[src]
fn from_x_coordinate(x: Self::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.
fn from_y_coordinate(_y: Self::BaseField, _greatest: bool) -> Option<Self>
[src]
Attempts to construct an affine point given a y-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.
fn add(self, _other: &Self) -> Self
[src]
fn mul<S: Into<<Self::ScalarField as PrimeField>::BigInteger>>(
&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) -> GroupProjective<P>
[src]
fn is_in_correct_subgroup_assuming_on_curve(&self) -> bool
[src]
fn to_x_coordinate(&self) -> Self::BaseField
[src]
fn to_y_coordinate(&self) -> Self::BaseField
[src]
fn is_on_curve(&self) -> bool
[src]
Checks that the current point is on the elliptic curve.
#[must_use]fn mul_by_cofactor(&self) -> Self
[src]
impl<P: Parameters> CanonicalDeserialize for GroupAffine<P>
[src]
fn deserialize<R: Read>(reader: &mut R) -> Result<Self, SerializationError>
[src]
fn deserialize_uncompressed<R: Read>(
reader: &mut R
) -> Result<Self, SerializationError>
[src]
reader: &mut R
) -> Result<Self, SerializationError>
impl<P: Parameters> CanonicalSerialize for GroupAffine<P>
[src]
fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), SerializationError>
[src]
fn serialized_size(&self) -> usize
[src]
fn serialize_uncompressed<W: Write>(
&self,
writer: &mut W
) -> Result<(), SerializationError>
[src]
&self,
writer: &mut W
) -> Result<(), SerializationError>
fn uncompressed_size(&self) -> usize
[src]
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> ConstantSerializedSize for GroupAffine<P>
[src]
const SERIALIZED_SIZE: usize
[src]
const UNCOMPRESSED_SIZE: usize
[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<'de, P: Parameters> Deserialize<'de> for GroupAffine<P> where
P::BaseField: Deserialize<'de>,
P::BaseField: Deserialize<'de>,
[src]
P::BaseField: Deserialize<'de>,
P::BaseField: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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: 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> Serialize for GroupAffine<P> where
P::BaseField: Serialize,
P::BaseField: Serialize,
[src]
P::BaseField: Serialize,
P::BaseField: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<P: Parameters> ToBytes for GroupAffine<P>
[src]
impl<M: SWModelParameters, F: Field> ToConstraintField<F> for SWAffine<M> where
M::BaseField: ToConstraintField<F>,
[src]
M::BaseField: ToConstraintField<F>,
fn to_field_elements(&self) -> Result<Vec<F>, ConstraintFieldError>
[src]
impl<P: Parameters> Zero for GroupAffine<P>
[src]
Auto Trait Implementations
impl<P> RefUnwindSafe for GroupAffine<P> where
P: RefUnwindSafe,
<P as ModelParameters>::BaseField: RefUnwindSafe,
P: RefUnwindSafe,
<P as ModelParameters>::BaseField: RefUnwindSafe,
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,
impl<P> UnwindSafe for GroupAffine<P> where
P: UnwindSafe,
<P as ModelParameters>::BaseField: UnwindSafe,
P: UnwindSafe,
<P as ModelParameters>::BaseField: UnwindSafe,
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
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>,