[][src]Struct bls12_381::MillerLoopResult

pub struct MillerLoopResult(_);

Represents results of a Miller loop, one of the most expensive portions of the pairing function. MillerLoopResults cannot be compared with each other until .final_exponentiation() is called, which is also expensive.

Methods

impl MillerLoopResult[src]

pub fn final_exponentiation(&self) -> Gt[src]

This performs a "final exponentiation" routine to convert the result of a Miller loop into an element of Gt with help of efficient squaring operation in the so-called cyclotomic subgroup of Fq6 so that it can be compared with other elements of Gt.

Trait Implementations

impl Debug for MillerLoopResult[src]

impl<'a, 'b> Add<&'b MillerLoopResult> for &'a MillerLoopResult[src]

type Output = MillerLoopResult

The resulting type after applying the + operator.

impl<'b> Add<&'b MillerLoopResult> for MillerLoopResult[src]

type Output = MillerLoopResult

The resulting type after applying the + operator.

impl<'a> Add<MillerLoopResult> for &'a MillerLoopResult[src]

type Output = MillerLoopResult

The resulting type after applying the + operator.

impl Add<MillerLoopResult> for MillerLoopResult[src]

type Output = MillerLoopResult

The resulting type after applying the + operator.

impl Copy for MillerLoopResult[src]

impl Clone for MillerLoopResult[src]

impl ConditionallySelectable for MillerLoopResult[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.