Struct fullcodec_bls12_381::G2Projective [−][src]
pub struct G2Projective { /* fields omitted */ }
Expand description
This is an element of $\mathbb{G}_2$ represented in the projective coordinate space.
Implementations
Returns the identity of the group: the point at infinity.
Returns a fixed generator of the group. See notes::design
for how this generator is chosen.
Computes the doubling of this point.
Adds this point to another point.
Adds this point to another point in the affine model.
Clears the cofactor, using Budroni-Pintore. This is equivalent to multiplying by $h_\textrm{eff} = 3(z^2 - 1) \cdot h_2$, where $h_2$ is the cofactor of $\mathbb{G}_2$ and $z$ is the parameter of BLS12-381.
The endomorphism is only actually used if the crate feature endo
is
enabled, and it is disabled by default to mitigate potential patent
issues.
Converts a batch of G2Projective
elements into G2Affine
elements. This
function will panic if p.len() != q.len()
.
Returns true if this element is the identity (the point at infinity).
Returns true if this point is on the curve. This should always return true unless an “unchecked” API was used.
Trait Implementations
type Output = G2Projective
type Output = G2Projective
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = G2Projective
type Output = G2Projective
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = G2Projective
type Output = G2Projective
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = G2Projective
type Output = G2Projective
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = G2Projective
type Output = G2Projective
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = G2Projective
type Output = G2Projective
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = G2Projective
type Output = G2Projective
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = G2Projective
type Output = G2Projective
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = G2Projective
type Output = G2Projective
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = G2Projective
type Output = G2Projective
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = G2Projective
type Output = G2Projective
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = G2Projective
type Output = G2Projective
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
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
type Output = G2Projective
type Output = G2Projective
The resulting type after applying the *
operator.
Performs the *
operation. Read more
type Output = G2Projective
type Output = G2Projective
The resulting type after applying the *
operator.
Performs the *
operation. Read more
type Output = G2Projective
type Output = G2Projective
The resulting type after applying the *
operator.
Performs the *
operation. Read more
Performs the *=
operation. Read more
Performs the *=
operation. Read more
type Output = G2Projective
type Output = G2Projective
The resulting type after applying the -
operator.
Performs the unary -
operation. Read more
type Output = G2Projective
type Output = G2Projective
The resulting type after applying the -
operator.
Performs the unary -
operation. Read more
type Output = G2Projective
type Output = G2Projective
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = G2Projective
type Output = G2Projective
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = G2Projective
type Output = G2Projective
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = G2Projective
type Output = G2Projective
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = G2Projective
type Output = G2Projective
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = G2Projective
type Output = G2Projective
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = G2Projective
type Output = G2Projective
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = G2Projective
type Output = G2Projective
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = G2Projective
type Output = G2Projective
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = G2Projective
type Output = G2Projective
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = G2Projective
type Output = G2Projective
The resulting type after applying the -
operator.
Performs the -
operation. Read more
type Output = G2Projective
type Output = G2Projective
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
Auto Trait Implementations
impl RefUnwindSafe for G2Projective
impl Send for G2Projective
impl Sync for G2Projective
impl Unpin for G2Projective
impl UnwindSafe for G2Projective
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> ConditionallyNegatable for T where
T: ConditionallySelectable,
&'a T: for<'a> Neg,
<&'a T as Neg>::Output == T,
impl<T> ConditionallyNegatable for T where
T: ConditionallySelectable,
&'a T: for<'a> Neg,
<&'a T as Neg>::Output == T,
Negate self
if choice == Choice(1)
; otherwise, leave it
unchanged. Read more