pub struct PointG2 { /* private fields */ }Implementations§
Source§impl PointG2
impl PointG2
pub const BYTES_REPR_SIZE: usize
Sourcepub fn new() -> IndyCryptoResult<PointG2>
pub fn new() -> IndyCryptoResult<PointG2>
Creates new random PointG2
Sourcepub fn new_inf() -> IndyCryptoResult<PointG2>
pub fn new_inf() -> IndyCryptoResult<PointG2>
Creates new infinity PointG2
Sourcepub fn add(&self, q: &PointG2) -> IndyCryptoResult<PointG2>
pub fn add(&self, q: &PointG2) -> IndyCryptoResult<PointG2>
PointG2 * PointG2
Sourcepub fn sub(&self, q: &PointG2) -> IndyCryptoResult<PointG2>
pub fn sub(&self, q: &PointG2) -> IndyCryptoResult<PointG2>
PointG2 / PointG2
Sourcepub fn mul(&self, e: &GroupOrderElement) -> IndyCryptoResult<PointG2>
pub fn mul(&self, e: &GroupOrderElement) -> IndyCryptoResult<PointG2>
PointG2 ^ GroupOrderElement
pub fn to_string(&self) -> IndyCryptoResult<String>
pub fn from_string(str: &str) -> IndyCryptoResult<PointG2>
pub fn to_bytes(&self) -> IndyCryptoResult<Vec<u8>>
pub fn from_bytes(b: &[u8]) -> IndyCryptoResult<PointG2>
Trait Implementations§
impl Copy for PointG2
Source§impl<'a> Deserialize<'a> for PointG2
Available on crate feature serialization only.
impl<'a> Deserialize<'a> for PointG2
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 PointG2
Auto Trait Implementations§
impl Freeze for PointG2
impl RefUnwindSafe for PointG2
impl Send for PointG2
impl Sync for PointG2
impl Unpin for PointG2
impl UnsafeUnpin for PointG2
impl UnwindSafe for PointG2
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