[−][src]Struct irmaseal_curve::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.
fn add(self, rhs: &'b Gt) -> Gt
[src]
impl<'b> Add<&'b Gt> for Gt
[src]
type Output = Gt
The resulting type after applying the +
operator.
fn add(self, rhs: &'b Gt) -> Gt
[src]
impl<'a> Add<Gt> for &'a Gt
[src]
impl Add<Gt> for Gt
[src]
impl<'b> AddAssign<&'b Gt> for Gt
[src]
fn add_assign(&mut self, rhs: &'b Gt)
[src]
impl AddAssign<Gt> for Gt
[src]
fn add_assign(&mut self, rhs: Gt)
[src]
impl Clone for Gt
[src]
fn clone(&self) -> Gt
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl ConditionallySelectable for Gt
[src]
fn conditional_select(a: &Self, b: &Self, choice: Choice) -> Self
[src]
fn conditional_assign(&mut self, other: &Self, choice: Choice)
[src]
fn conditional_swap(a: &mut Self, b: &mut Self, choice: Choice)
[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.
fn mul(self, other: &'b Scalar) -> Self::Output
[src]
impl<'b> Mul<&'b Scalar> for Gt
[src]
type Output = Gt
The resulting type after applying the *
operator.
fn mul(self, rhs: &'b Scalar) -> Gt
[src]
impl<'a> Mul<Scalar> for &'a Gt
[src]
type Output = Gt
The resulting type after applying the *
operator.
fn mul(self, rhs: Scalar) -> Gt
[src]
impl Mul<Scalar> for Gt
[src]
type Output = Gt
The resulting type after applying the *
operator.
fn mul(self, rhs: Scalar) -> Gt
[src]
impl<'b> MulAssign<&'b Scalar> for Gt
[src]
fn mul_assign(&mut self, rhs: &'b Scalar)
[src]
impl MulAssign<Scalar> for Gt
[src]
fn mul_assign(&mut self, rhs: Scalar)
[src]
impl<'a> Neg for &'a Gt
[src]
impl Neg for Gt
[src]
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.
fn sub(self, rhs: &'b Gt) -> Gt
[src]
impl<'b> Sub<&'b Gt> for Gt
[src]
type Output = Gt
The resulting type after applying the -
operator.
fn sub(self, rhs: &'b Gt) -> Gt
[src]
impl<'a> Sub<Gt> for &'a Gt
[src]
impl Sub<Gt> for Gt
[src]
impl<'b> SubAssign<&'b Gt> for Gt
[src]
fn sub_assign(&mut self, rhs: &'b Gt)
[src]
impl SubAssign<Gt> for Gt
[src]
fn sub_assign(&mut self, rhs: Gt)
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> ConditionallyNegatable for T where
T: ConditionallySelectable,
&'a T: Neg,
<&'a T as Neg>::Output == T,
[src]
T: ConditionallySelectable,
&'a T: Neg,
<&'a T as Neg>::Output == T,
fn conditional_negate(&mut self, choice: Choice)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,