[][src]Struct wedpr_indy_crypto::pair::PointG1

pub struct PointG1 { /* fields omitted */ }

Implementations

impl PointG1[src]

pub const BYTES_REPR_SIZE: usize[src]

pub fn new() -> Result<PointG1, IndyCryptoError>[src]

Creates new random PointG1

pub fn new_inf() -> Result<PointG1, IndyCryptoError>[src]

Creates new infinity PointG1

pub fn is_inf(&self) -> Result<bool, IndyCryptoError>[src]

Checks infinity

pub fn mul(&self, e: &GroupOrderElement) -> Result<PointG1, IndyCryptoError>[src]

PointG1 ^ GroupOrderElement

pub fn add(&self, q: &PointG1) -> Result<PointG1, IndyCryptoError>[src]

PointG1 * PointG1

pub fn sub(&self, q: &PointG1) -> Result<PointG1, IndyCryptoError>[src]

PointG1 / PointG1

pub fn neg(&self) -> Result<PointG1, IndyCryptoError>[src]

1 / PointG1

pub fn to_string(&self) -> Result<String, IndyCryptoError>[src]

pub fn from_string(str: &str) -> Result<PointG1, IndyCryptoError>[src]

pub fn to_bytes(&self) -> Result<Vec<u8>, IndyCryptoError>[src]

pub fn from_bytes(b: &[u8]) -> Result<PointG1, IndyCryptoError>[src]

pub fn from_hash(hash: &[u8]) -> Result<PointG1, IndyCryptoError>[src]

Trait Implementations

impl Clone for PointG1[src]

impl Copy for PointG1[src]

impl Debug for PointG1[src]

impl<'a> Deserialize<'a> for PointG1[src]

impl PartialEq<PointG1> for PointG1[src]

impl Serialize for PointG1[src]

impl StructuralPartialEq for PointG1[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.