Skip to main content

scalar_from_bytes

Function scalar_from_bytes 

Source
pub fn scalar_from_bytes(bytes: &[u8]) -> Option<Scalar>
Expand description

Convert raw big-endian bytes (32 bytes) into a Scalar. Returns None if bytes are not 32 long or if the value is out of range.