Trait commonware_cryptography::bls12381::primitives::group::Element
source · pub trait Element:
Clone
+ Eq
+ PartialEq
+ Send
+ Sync {
// Required methods
fn zero() -> Self;
fn one() -> Self;
fn add(&mut self, rhs: &Self);
fn mul(&mut self, rhs: &Scalar);
fn serialize(&self) -> Vec<u8>;
fn size() -> usize;
fn deserialize(bytes: &[u8]) -> Option<Self>;
}Expand description
An element of a group.
Required Methods§
sourcefn deserialize(bytes: &[u8]) -> Option<Self>
fn deserialize(bytes: &[u8]) -> Option<Self>
Deserializes a canonically encoded element.
Object Safety§
This trait is not object safe.