pub struct Scalar { /* private fields */ }
Implementations§
source§impl Scalar
impl Scalar
pub fn from_u32(v: u32) -> Scalar
pub fn generate(drg: &mut Drg) -> Scalar
pub fn multiplicative_identity() -> Scalar
pub fn hash_points(points: Vec<&Point>) -> Scalar
pub fn pow(&self, pow: u32) -> Scalar
pub fn inverse(&self) -> Scalar
pub fn from_bytes(bytes: &[u8; 32]) -> Option<Scalar>
pub fn from_slice(slice: &[u8]) -> Option<Scalar>
Trait Implementations§
source§impl PartialEq<Scalar> for Scalar
impl PartialEq<Scalar> for Scalar
Auto Trait Implementations§
impl RefUnwindSafe for Scalar
impl Send for Scalar
impl Sync for Scalar
impl Unpin for Scalar
impl UnwindSafe for Scalar
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