[−][src]Struct wedpr_indy_crypto::pair::PointG1
Implementations
impl PointG1
[src]
pub const BYTES_REPR_SIZE: usize
[src]
pub fn new() -> Result<PointG1, IndyCryptoError>
[src]
Creates new random PointG1
pub fn new_inf() -> Result<PointG1, IndyCryptoError>
[src]
Creates new infinity PointG1
pub fn is_inf(&self) -> Result<bool, IndyCryptoError>
[src]
Checks infinity
pub fn mul(&self, e: &GroupOrderElement) -> Result<PointG1, IndyCryptoError>
[src]
PointG1 ^ GroupOrderElement
pub fn add(&self, q: &PointG1) -> Result<PointG1, IndyCryptoError>
[src]
PointG1 * PointG1
pub fn sub(&self, q: &PointG1) -> Result<PointG1, IndyCryptoError>
[src]
PointG1 / PointG1
pub fn neg(&self) -> Result<PointG1, IndyCryptoError>
[src]
1 / PointG1
pub fn to_string(&self) -> Result<String, IndyCryptoError>
[src]
pub fn from_string(str: &str) -> Result<PointG1, IndyCryptoError>
[src]
pub fn to_bytes(&self) -> Result<Vec<u8>, IndyCryptoError>
[src]
pub fn from_bytes(b: &[u8]) -> Result<PointG1, IndyCryptoError>
[src]
pub fn from_hash(hash: &[u8]) -> Result<PointG1, IndyCryptoError>
[src]
Trait Implementations
impl Clone for PointG1
[src]
impl Copy for PointG1
[src]
impl Debug for PointG1
[src]
impl<'a> Deserialize<'a> for PointG1
[src]
pub fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'a>,
[src]
D: Deserializer<'a>,
impl PartialEq<PointG1> for PointG1
[src]
impl Serialize for PointG1
[src]
impl StructuralPartialEq for PointG1
[src]
Auto Trait Implementations
impl RefUnwindSafe for PointG1
[src]
impl Send for PointG1
[src]
impl Sync for PointG1
[src]
impl Unpin for PointG1
[src]
impl UnwindSafe for PointG1
[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>,