Struct ark_ec::models::twisted_edwards_extended::GroupAffine [−][src]
#[must_use]pub struct GroupAffine<P: Parameters> { pub x: P::BaseField, pub y: P::BaseField, // some fields omitted }
Fields
x: P::BaseField
y: P::BaseField
Implementations
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.
Checks that the current point is on the elliptic curve.
Checks that the current point is in the prime order subgroup given the point on the curve.
Trait Implementations
Performs the +=
operation. Read more
Performs the +=
operation. Read more
Performs the +=
operation. Read more
type ScalarField = P::ScalarField
type Projective = GroupProjective<P>
Returns a fixed generator of unknown exponent.
fn mul<S: Into<<Self::ScalarField as PrimeField>::BigInt>>(
&self,
by: S
) -> GroupProjective<P>
[src]
fn mul<S: Into<<Self::ScalarField as PrimeField>::BigInt>>(
&self,
by: S
) -> GroupProjective<P>
[src]Performs scalar multiplication of this element with mixed addition.
Returns a group element if the set of bytes forms a valid group element, otherwise returns None. This function is primarily intended for sampling random group elements from a hash-function or RNG output. Read more
Multiply this element by the cofactor and output the resulting projective element. Read more
Multiply this element by the inverse of the cofactor in
Self::ScalarField
. Read more
Converts self into the projective representation.
Multiply this element by the cofactor.
Reads Self
from reader
.
Reads Self
from reader
without compression.
Reads self
from reader
without compression, and without performing
validity checks. Should be used only when the input is trusted. Read more
Serializes self
into writer
.
It is left up to a particular type for how it strikes the
serialization efficiency vs compression tradeoff.
For standard types (e.g. bool
, lengths, etc.) typically an uncompressed
form is used, whereas for algebraic types compressed forms are used. Read more
Serializes self
into writer
without compression.
Serializes self
into writer
without compression, and without
performing validity checks. Should be used only when there is no
danger of adversarial manipulation of the output. Read more
Performs the conversion.
Performs the conversion.
type ScalarField = P::ScalarField
Sets self := self + self
.
Performs the *=
operation. Read more
Performs the -=
operation. Read more
Performs the -=
operation. Read more
Performs the -=
operation. Read more
impl<M: Parameters, ConstraintF: Field> ToConstraintField<ConstraintF> for GroupAffine<M> where
M::BaseField: ToConstraintField<ConstraintF>,
[src]
impl<M: Parameters, ConstraintF: Field> ToConstraintField<ConstraintF> for GroupAffine<M> where
M::BaseField: ToConstraintField<ConstraintF>,
[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
Mutably borrows from an owned value. Read more
fn hash_uncompressed<H>(&self) -> GenericArray<u8, <H as Digest>::OutputSize> where
H: Digest,
[src]type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V