Struct indy_crypto::pair::Pair
[−]
[src]
pub struct Pair { /* fields omitted */ }
Methods
impl Pair
[src]
fn pair(p: &PointG1, q: &PointG2) -> Result<Pair, IndyCryptoError>
[src]
e(PointG1, PointG2)
fn mul(&self, b: &Pair) -> Result<Pair, IndyCryptoError>
[src]
e() * e()
fn pow(&self, b: &GroupOrderElement) -> Result<Pair, IndyCryptoError>
[src]
e() ^ GroupOrderElement
fn inverse(&self) -> Result<Pair, IndyCryptoError>
[src]
1 / e()
fn to_string(&self) -> Result<String, IndyCryptoError>
[src]
fn from_string(str: &str) -> Result<Pair, IndyCryptoError>
[src]
fn to_bytes(&self) -> Result<Vec<u8>, IndyCryptoError>
[src]
Trait Implementations
impl Debug for Pair
[src]
impl Copy for Pair
[src]
impl Clone for Pair
[src]
fn clone(&self) -> Pair
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Pair
[src]
fn eq(&self, __arg_0: &Pair) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Pair) -> bool
[src]
This method tests for !=
.
impl Serialize for Pair
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'a> Deserialize<'a> for Pair
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'a>,
[src]
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more