pub fn from_be_bytes(bytes: &[u8]) -> Result<Self> {
        if bytes.len() != C::UInt::BYTE_SIZE {
            return Err(Error);
        }

        let inner: ScalarCore<C> = Option::from(ScalarCore::from_be_bytes(
            GenericArray::clone_from_slice(bytes),
        ))
        .ok_or(Error)?;

        if inner.is_zero().into() {
            return Err(Error);
        }

        Ok(Self { inner })
    }
/// Deserialize raw secret scalar as a big endian integer.
Deserialize raw secret scalar as a big endian integer.
Deserialize raw secret scalar as a big endian integer .
pub fn from_be_bytes(bytes: &[u8]) -> Result<Self> {
        if bytes.len() != C::UInt::BYTE_SIZE {
            return Err(Error);
        }
        let inner: ScalarCore<C> = Option::from(ScalarCore::from_be_bytes(
            GenericArray::clone_from_slice(bytes),
        ))
        .ok_or(Error)?;
        if inner.is_zero().into() {
            return Err(Error);
        }
        Ok(Self { inner })
    }
pub fn from_be_bytes ( bytes : & [ u8 ] ) -> Result < Self > { if bytes . len ( ) != C :: UInt :: BYTE_SIZE { return Err ( Error ) ; } let inner : ScalarCore < C > = Option :: from ( ScalarCore :: from_be_bytes ( GenericArray :: clone_from_slice ( bytes ) , ) ) . ok_or ( Error ) ? ; if inner . is_zero ( ) . into ( ) { return Err ( Error ) ; } Ok ( Self { inner } ) }
Deserialize raw secret scalar as a big endian integer.
Deserialize raw secret scalar as a big endian integer .
bytes
&[u8]