Struct indy_crypto::pair::PointG1
[−]
[src]
pub struct PointG1 { /* fields omitted */ }
Methods
impl PointG1
[src]
fn new() -> Result<PointG1, IndyCryptoError>
[src]
Creates new random PointG1
fn new_inf() -> Result<PointG1, IndyCryptoError>
[src]
Creates new infinity PointG1
fn is_inf(&self) -> Result<bool, IndyCryptoError>
[src]
Checks infinity
fn mul(&self, e: &GroupOrderElement) -> Result<PointG1, IndyCryptoError>
[src]
PointG1 ^ GroupOrderElement
fn add(&self, q: &PointG1) -> Result<PointG1, IndyCryptoError>
[src]
PointG1 * PointG1
fn sub(&self, q: &PointG1) -> Result<PointG1, IndyCryptoError>
[src]
PointG1 / PointG1
fn neg(&self) -> Result<PointG1, IndyCryptoError>
[src]
1 / PointG1
fn to_string(&self) -> Result<String, IndyCryptoError>
[src]
fn from_string(str: &str) -> Result<PointG1, IndyCryptoError>
[src]
fn to_bytes(&self) -> Result<Vec<u8>, IndyCryptoError>
[src]
fn from_bytes(b: &[u8]) -> Result<PointG1, IndyCryptoError>
[src]
fn from_hash(hash: &[u8]) -> Result<PointG1, IndyCryptoError>
[src]
Trait Implementations
impl Copy for PointG1
[src]
impl Clone for PointG1
[src]
fn clone(&self) -> PointG1
[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 PointG1
[src]
fn eq(&self, __arg_0: &PointG1) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PointG1) -> bool
[src]
This method tests for !=
.
impl Debug for PointG1
[src]
impl Serialize for PointG1
[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 PointG1
[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