[−][src]Struct wedpr_indy_crypto::pair::Pair
Implementations
impl Pair
[src]
pub const BYTES_REPR_SIZE: usize
[src]
pub fn pair(p: &PointG1, q: &PointG2) -> Result<Pair, IndyCryptoError>
[src]
e(PointG1, PointG2)
pub fn mul(&self, b: &Pair) -> Result<Pair, IndyCryptoError>
[src]
e() * e()
pub fn pow(&self, b: &GroupOrderElement) -> Result<Pair, IndyCryptoError>
[src]
e() ^ GroupOrderElement
pub fn inverse(&self) -> Result<Pair, IndyCryptoError>
[src]
1 / e()
pub fn to_string(&self) -> Result<String, IndyCryptoError>
[src]
pub fn from_string(str: &str) -> Result<Pair, IndyCryptoError>
[src]
pub fn to_bytes(&self) -> Result<Vec<u8>, IndyCryptoError>
[src]
Trait Implementations
impl Clone for Pair
[src]
impl Copy for Pair
[src]
impl Debug for Pair
[src]
impl<'a> Deserialize<'a> for Pair
[src]
pub fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'a>,
[src]
D: Deserializer<'a>,
impl PartialEq<Pair> for Pair
[src]
impl Serialize for Pair
[src]
impl StructuralPartialEq for Pair
[src]
Auto Trait Implementations
impl RefUnwindSafe for Pair
[src]
impl Send for Pair
[src]
impl Sync for Pair
[src]
impl Unpin for Pair
[src]
impl UnwindSafe for Pair
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,