[][src]Struct bls12_381::Gt

pub struct Gt(_);

This is an element of $\mathbb{G}_T$, the target group of the pairing function. As with $\mathbb{G}_1$ and $\mathbb{G}_2$ this group has order $q$.

Typically, $\mathbb{G}_T$ is written multiplicatively but we will write it additively to keep code and abstractions consistent.

Implementations

impl Gt[src]

pub fn identity() -> Gt[src]

Returns the group identity, which is $1$.

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

Doubles this group element.

Trait Implementations

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

type Output = Gt

The resulting type after applying the + operator.

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

type Output = Gt

The resulting type after applying the + operator.

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

type Output = Gt

The resulting type after applying the + operator.

impl Add<Gt> for Gt[src]

type Output = Gt

The resulting type after applying the + operator.

impl<'b> AddAssign<&'b Gt> for Gt[src]

impl AddAssign<Gt> for Gt[src]

impl Clone for Gt[src]

impl ConditionallySelectable for Gt[src]

impl ConstantTimeEq for Gt[src]

impl Copy for Gt[src]

impl Debug for Gt[src]

impl Default for Gt[src]

impl Display for Gt[src]

impl Eq for Gt[src]

impl Group for Gt[src]

type Scalar = Scalar

Scalars modulo the order of this group's scalar field.

impl<'a, 'b> Mul<&'b Scalar> for &'a Gt[src]

type Output = Gt

The resulting type after applying the * operator.

impl<'b> Mul<&'b Scalar> for Gt[src]

type Output = Gt

The resulting type after applying the * operator.

impl<'a> Mul<Scalar> for &'a Gt[src]

type Output = Gt

The resulting type after applying the * operator.

impl Mul<Scalar> for Gt[src]

type Output = Gt

The resulting type after applying the * operator.

impl<'b> MulAssign<&'b Scalar> for Gt[src]

impl MulAssign<Scalar> for Gt[src]

impl<'a> Neg for &'a Gt[src]

type Output = Gt

The resulting type after applying the - operator.

impl Neg for Gt[src]

type Output = Gt

The resulting type after applying the - operator.

impl PartialEq<Gt> for Gt[src]

impl<'a, 'b> Sub<&'b Gt> for &'a Gt[src]

type Output = Gt

The resulting type after applying the - operator.

impl<'b> Sub<&'b Gt> for Gt[src]

type Output = Gt

The resulting type after applying the - operator.

impl<'a> Sub<Gt> for &'a Gt[src]

type Output = Gt

The resulting type after applying the - operator.

impl Sub<Gt> for Gt[src]

type Output = Gt

The resulting type after applying the - operator.

impl<'b> SubAssign<&'b Gt> for Gt[src]

impl SubAssign<Gt> for Gt[src]

impl<T> Sum<T> for Gt where
    T: Borrow<Gt>, 
[src]

Auto Trait Implementations

impl Send for Gt[src]

impl Sync for Gt[src]

impl Unpin for Gt[src]

Blanket Implementations

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

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

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

impl<T> ConditionallyNegatable for T where
    T: ConditionallySelectable,
    &'a T: for<'a> Neg,
    <&'a T as Neg>::Output == T, 
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

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

impl<T, Rhs, Output> GroupOps<Rhs, Output> for T where
    T: Add<Rhs, Output = Output> + Sub<Rhs, Output = Output> + AddAssign<Rhs> + SubAssign<Rhs>, 
[src]

impl<T, Rhs, Output> GroupOpsOwned<Rhs, Output> for T where
    T: for<'r> GroupOps<&'r Rhs, Output>, 
[src]

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

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T, Rhs, Output> ScalarMul<Rhs, Output> for T where
    T: Mul<Rhs, Output = Output> + MulAssign<Rhs>, 
[src]

impl<T, Rhs, Output> ScalarMulOwned<Rhs, Output> for T where
    T: for<'r> ScalarMul<&'r Rhs, Output>, 
[src]

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> TryConv for T

impl<T> TryConv for T

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> 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.