[][src]Struct irmaseal_curve::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.

Methods

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.

pub fn to_uncompressed(&self) -> [u8; 576][src]

Serializes this element into uncompressed form. See notes::serialization for details about how group elements are serialized.

pub fn from_uncompressed(bytes: &[u8; 576]) -> CtOption<Self>[src]

Attempts to deserialize an uncompressed element. See notes::serialization for details about how group elements are serialized.

pub fn to_compressed(&self) -> [u8; 288][src]

Serializes this element into compressed form. See notes::serialization for details about how group elements are serialized.

pub fn from_compressed(bytes: &[u8; 288]) -> CtOption<Self>[src]

Attempts to deserialize a compressed element. See notes::serialization for details about how group elements are serialized.

pub fn from_compressed_unchecked(bytes: &[u8; 288]) -> CtOption<Self>[src]

Attempts to deserialize a compressed element, not checking if the element is in the correct pairing group. 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.

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 Eq for Gt[src]

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]

Auto Trait Implementations

impl Send for Gt

impl Sync for Gt

impl Unpin for Gt

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: Neg,
    <&'a T as Neg>::Output == T, 
[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.