Struct bellperson::bls::G1Projective [−][src]
pub struct G1Projective(_);
Expand description
This is an element of $\mathbb{G}_1$ represented in the projective coordinate space.
Implementations
Serializes this element into compressed form.
Serializes this element into uncompressed form.
Attempts to deserialize an uncompressed element.
Attempts to deserialize an uncompressed element, not checking if the element is on the curve and not checking if it is in the correct subgroup.
This is dangerous to call unless you trust the bytes you are reading; otherwise,
API invariants may be broken. Please consider using from_uncompressed()
instead.
Attempts to deserialize a compressed element.
Attempts to deserialize an uncompressed element, not checking if the element is in the correct subgroup.
This is dangerous to call unless you trust the bytes you are reading; otherwise,
API invariants may be broken. Please consider using from_compressed()
instead.
Adds this point to another point.
Adds this point to another point in the affine model.
Returns true if this point is on the curve. This should always return true unless an “unchecked” API was used.
Trait Implementations
type Output = G1Projective
type Output = G1Projective
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = G1Projective
type Output = G1Projective
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = G1Projective
type Output = G1Projective
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = G1Projective
type Output = G1Projective
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = G1Projective
type Output = G1Projective
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = G1Projective
type Output = G1Projective
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = G1Projective
type Output = G1Projective
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = G1Projective
type Output = G1Projective
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = G1Projective
type Output = G1Projective
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = G1Projective
type Output = G1Projective
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = G1Projective
type Output = G1Projective
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = G1Projective
type Output = G1Projective
The resulting type after applying the +
operator.
Performs the +
operation. Read more
Performs the +=
operation. Read more
Performs the +=
operation. Read more
Performs the +=
operation. Read more
Performs the +=
operation. Read more
Returns an element chosen uniformly at random using a user-provided RNG.
Returns the additive identity.
Returns a fixed generator of unknown exponent.
Checks if the point is already “normalized” so that cheap affine conversion is possible. Read more
Normalizes a slice of projective elements so that conversion to affine is cheap. Read more
Adds another element to this element.
Adds an affine element to this element.
pub fn mul_assign<S>(&mut self, other: S) where
S: Into<<<G1Projective as CurveProjective>::Scalar as PrimeField>::Repr>,
pub fn mul_assign<S>(&mut self, other: S) where
S: Into<<<G1Projective as CurveProjective>::Scalar as PrimeField>::Repr>,
Performs scalar multiplication of this element.
Converts this element into its affine representation.
pub fn recommended_wnaf_for_scalar(
scalar: <<G1Projective as CurveProjective>::Scalar as PrimeField>::Repr
) -> usize
pub fn recommended_wnaf_for_scalar(
scalar: <<G1Projective as CurveProjective>::Scalar as PrimeField>::Repr
) -> 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
Subtracts another element from this element.
pub fn deserialize<D>(
d: D
) -> Result<G1Projective, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
pub fn deserialize<D>(
d: D
) -> Result<G1Projective, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
type Output = G1Projective
type Output = G1Projective
The resulting type after applying the *
operator.
type Output = G1Projective
type Output = G1Projective
The resulting type after applying the *
operator.
Performs the *
operation. Read more
type Output = G1Projective
type Output = G1Projective
The resulting type after applying the *
operator.
Performs the *
operation. Read more
type Output = G1Projective
type Output = G1Projective
The resulting type after applying the *
operator.
Performs the *
operation. Read more
Performs the *=
operation. Read more
Performs the *=
operation. Read more
type Output = G1Projective
type Output = G1Projective
The resulting type after applying the -
operator.
Performs the unary -
operation. Read more
type Output = G1Projective
type Output = G1Projective
The resulting type after applying the -
operator.
Performs the unary -
operation. Read more
pub fn serialize<S>(
&self,
s: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
pub fn serialize<S>(
&self,
s: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
type Output = G1Projective
type Output = G1Projective
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = G1Projective
type Output = G1Projective
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = G1Projective
type Output = G1Projective
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = G1Projective
type Output = G1Projective
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = G1Projective
type Output = G1Projective
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = G1Projective
type Output = G1Projective
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = G1Projective
type Output = G1Projective
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = G1Projective
type Output = G1Projective
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = G1Projective
type Output = G1Projective
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = G1Projective
type Output = G1Projective
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = G1Projective
type Output = G1Projective
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = G1Projective
type Output = G1Projective
The resulting type after applying the -
operator.
Performs the -
operation. Read more
Performs the -=
operation. Read more
Performs the -=
operation. Read more
Performs the -=
operation. Read more
Performs the -=
operation. Read more
Method which takes an iterator and generates Self
from the elements by
“summing up” the items. Read more
Auto Trait Implementations
impl RefUnwindSafe for G1Projective
impl Send for G1Projective
impl Sync for G1Projective
impl Unpin for G1Projective
impl UnwindSafe for G1Projective
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V