Struct pairing::bls12_381::G2Affine
[−]
[src]
pub struct G2Affine { /* fields omitted */ }
Trait Implementations
impl Copy for G2Affine
[src]
impl Clone for G2Affine
[src]
fn clone(&self) -> G2Affine
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for G2Affine
[src]
fn eq(&self, __arg_0: &G2Affine) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &G2Affine) -> bool
[src]
This method tests for !=
.
impl Eq for G2Affine
[src]
impl Debug for G2Affine
[src]
impl Display for G2Affine
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl CurveAffine for G2Affine
[src]
type Engine = Bls12
type Scalar = Fr
type Base = Fq2
type Prepared = G2Prepared
type Projective = G2
type Uncompressed = G2Uncompressed
type Compressed = G2Compressed
type Pair = G1Affine
type PairingResult = Fq12
fn zero() -> Self
[src]
Returns the additive identity.
fn one() -> Self
[src]
Returns a fixed generator of unknown exponent.
fn is_zero(&self) -> bool
[src]
Determines if this point represents the point at infinity; the additive identity. Read more
fn mul<S: Into<<Self::Scalar as PrimeField>::Repr>>(&self, by: S) -> G2
[src]
Performs scalar multiplication of this element with mixed addition.
fn negate(&mut self)
[src]
Negates this element.
fn prepare(&self) -> Self::Prepared
[src]
Prepares this element for pairing purposes.
fn pairing_with(&self, other: &Self::Pair) -> Self::PairingResult
[src]
Perform a pairing
fn into_projective(&self) -> G2
[src]
Converts this element into its affine representation.
fn into_compressed(&self) -> Self::Compressed
[src]
Converts this element into its compressed encoding, so long as it's not the point at infinity. Read more
fn into_uncompressed(&self) -> Self::Uncompressed
[src]
Converts this element into its uncompressed encoding, so long as it's not the point at infinity. Read more