pub trait Scalar: Mul<Output = Self> + Sized {
// Required methods
fn random() -> Self;
fn from_bytes(bytes: &[u8]) -> Result<Self>;
fn to_bytes(&self) -> Box<[u8]>;
}
Expand description
Types representing a valid non-zero scalar an additive abelian group.
Required Methods§
Sourcefn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Create scalar from bytes
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.