pub struct Pair { /* private fields */ }Implementations§
Source§impl Pair
impl Pair
pub const BYTES_REPR_SIZE: usize
Sourcepub fn mul(&self, b: &Pair) -> IndyCryptoResult<Pair>
pub fn mul(&self, b: &Pair) -> IndyCryptoResult<Pair>
e() * e()
Sourcepub fn pow(&self, b: &GroupOrderElement) -> IndyCryptoResult<Pair>
pub fn pow(&self, b: &GroupOrderElement) -> IndyCryptoResult<Pair>
e() ^ GroupOrderElement
Sourcepub fn inverse(&self) -> IndyCryptoResult<Pair>
pub fn inverse(&self) -> IndyCryptoResult<Pair>
1 / e()
pub fn to_string(&self) -> IndyCryptoResult<String>
pub fn from_string(str: &str) -> IndyCryptoResult<Pair>
pub fn to_bytes(&self) -> IndyCryptoResult<Vec<u8>>
Trait Implementations§
impl Copy for Pair
Source§impl<'a> Deserialize<'a> for Pair
Available on crate feature serialization only.
impl<'a> Deserialize<'a> for Pair
Available on crate feature
serialization only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Pair
Auto Trait Implementations§
impl Freeze for Pair
impl RefUnwindSafe for Pair
impl Send for Pair
impl Sync for Pair
impl Unpin for Pair
impl UnsafeUnpin for Pair
impl UnwindSafe for Pair
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more