Struct bellperson::bls::G2Affine [−][src]
pub struct G2Affine(_);
Expand description
This is an element of $\mathbb{G}_2$ represented in the affine coordinate space. It is ideal to keep elements in this representation to reduce memory usage and improve performance through the use of mixed curve model arithmetic.
Implementations
Determines if this point represents the point at infinity; the additive identity.
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.
Returns true if this point is free of an $h$-torsion component, and so it exists within the $q$-order subgroup $\mathbb{G}_2$. This should always return true unless an “unchecked” API was used.
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
Performs the +=
operation. Read more
Performs the +=
operation. Read more
type Projective = G2Projective
type Uncompressed = G2Uncompressed
type Compressed = G2Compressed
Determines if this point represents the point at infinity; the additive identity. Read more
pub fn mul<S>(&self, by: S) -> <G2Affine as CurveAffine>::Projective where
S: Into<<<G2Affine as CurveAffine>::Scalar as PrimeField>::Repr>,
pub fn mul<S>(&self, by: S) -> <G2Affine as CurveAffine>::Projective where
S: Into<<<G2Affine as CurveAffine>::Scalar as PrimeField>::Repr>,
Performs scalar multiplication of this element with mixed addition.
Converts this element into its affine representation.
Converts this element into its compressed encoding, so long as it’s not the point at infinity. Read more
Converts this element into its uncompressed encoding, so long as it’s not the point at infinity. Read more
pub fn deserialize<D>(d: D) -> Result<G2Affine, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
pub fn deserialize<D>(d: D) -> Result<G2Affine, <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 = 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 Prepared = G2Prepared
type PairingResult = Fp12
Prepares this element for pairing purposes.
pub fn pairing_with(
&self,
other: &<G2Affine as PairingCurveAffine>::Pair
) -> <G2Affine as PairingCurveAffine>::PairingResult
pub fn pairing_with(
&self,
other: &<G2Affine as PairingCurveAffine>::Pair
) -> <G2Affine as PairingCurveAffine>::PairingResult
Perform a pairing
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 = 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
Auto Trait Implementations
impl RefUnwindSafe for G2Affine
impl UnwindSafe for G2Affine
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