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