Struct snarkvm_curves::templates::short_weierstrass_jacobian::projective::Projective [−][src]
pub struct Projective<P: Parameters> { pub x: P::BaseField, pub y: P::BaseField, pub z: P::BaseField, }
Fields
x: P::BaseField
y: P::BaseField
z: P::BaseField
Implementations
Trait Implementations
Performs the +=
operation. Read more
Performs the +=
operation. Read more
Performs the +=
operation. Read more
Performs the +=
operation. Read more
Reads Self
from reader
.
Reads Self
from reader
without compression.
Serializes self
into writer
.
Serializes self
into writer
without compression.
Generate a random value of T
, using rng
as the source of randomness.
Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
The affine point X, Y is represented in the Jacobian coordinates with Z = 1.
Performs the conversion.
Performs the conversion.
type ScalarField = P::ScalarField
Sets self := self + self
.
Performs scalar multiplication of this element.
type Output = Self
type Output = Self
The resulting type after applying the *
operator.
Performs scalar multiplication of this element.
TODO (howardwu): This method can likely be sped up.
Returns a fixed generator of unknown exponent.
Checks if the point is already “normalized” so that cheap affine conversion is possible. Read more
Adds an affine element to this element.
Converts this element into its affine representation.
fn recommended_wnaf_for_scalar(
scalar: <Self::ScalarField as PrimeField>::BigInteger
) -> usize
fn recommended_wnaf_for_scalar(
scalar: <Self::ScalarField as PrimeField>::BigInteger
) -> usize
Recommends a wNAF window table size given a scalar. Always returns a number between 2 and 22, inclusive. Read more
Recommends a wNAF window size given the number of scalars you intend to multiply a base by. Always returns a number between 2 and 22, inclusive. Read more
Performs the -=
operation. Read more
Performs the -=
operation. Read more
Performs the -=
operation. Read more
Performs the -=
operation. Read more
impl<M: ShortWeierstrassParameters, F: Field> ToConstraintField<F> for SWProjective<M> where
M::BaseField: ToConstraintField<F>,
impl<M: ShortWeierstrassParameters, F: Field> ToConstraintField<F> for SWProjective<M> where
M::BaseField: ToConstraintField<F>,
Auto Trait Implementations
impl<P> RefUnwindSafe for Projective<P> where
<P as ModelParameters>::BaseField: RefUnwindSafe,
impl<P> Send for Projective<P>
impl<P> Sync for Projective<P>
impl<P> Unpin for Projective<P> where
<P as ModelParameters>::BaseField: Unpin,
impl<P> UnwindSafe for Projective<P> where
<P as ModelParameters>::BaseField: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more