Struct pairing::bls12_381::G2 [] [src]

pub struct G2 { /* fields omitted */ }

Trait Implementations

impl Copy for G2
[src]

impl Clone for G2
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for G2
[src]

Formats the value using the given formatter.

impl Eq for G2
[src]

impl Display for G2
[src]

Formats the value using the given formatter. Read more

impl PartialEq for G2
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Rand for G2
[src]

Generates a random instance of this type using the specified source of randomness. Read more

impl CurveProjective for G2
[src]

Returns the additive identity.

Returns a fixed generator of unknown exponent.

Determines if this point is the point at infinity.

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

Doubles this element.

Adds another element to this element.

Adds an affine element to this element.

Negates this element.

Performs scalar multiplication of this element.

Converts this element into its affine representation.

Recommends a wNAF window table size given a scalar. Returns None if normal scalar multiplication is encouraged. If Some is returned, it will be 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.

impl From<G2Affine> for G2
[src]

Performs the conversion.