pub fn from_bytes(bytes: &[u8]) -> Result<Self, AtmsError> {
        match BlstSk::from_bytes(&bytes[..32]) {
            Ok(sk) => Ok(Self(sk)),
            Err(e) => Err(blst_err_to_atms(e)
                .expect_err("If deserialisation is not successful, blst returns and error different to SUCCESS."))
        }
    }
/// Convert a string of bytes into a `SigningKey`.
/// # Error
/// Fails if the byte string represents a scalar larger than the group order.
Convert a string of bytes into a `SigningKey`.
Convert a string of bytes into a ` SigningKey ` .
pub fn from_bytes(bytes: &[u8]) -> Result<Self, AtmsError> {
        match BlstSk::from_bytes(&bytes[..32]) {
            Ok(sk) => Ok(Self(sk)),
            Err(e) => Err(blst_err_to_atms(e)
                .expect_err("If deserialisation is not successful, blst returns and error different to SUCCESS."))
        }
    }
pub fn from_bytes ( bytes : & [ u8 ] ) -> Result < Self , AtmsError > { match BlstSk :: from_bytes ( & bytes [ .. 32 ] ) { Ok ( sk ) => Ok ( Self ( sk ) ) , Err ( e ) => Err ( blst_err_to_atms ( e ) . expect_err ( " " ) ) } }
Convert a string of bytes into a `SigningKey`.
Convert a string of bytes into a ` SigningKey ` .
bytes
&[u8]
error
Fails if the byte string represents a scalar larger than the group order.
Fails if the byte string represents a scalar larger than the group order .