pub fn from_bytes(bytes: &[u8]) -> Result<Self, AtmsError> {
        match BlstSig::from_bytes(&bytes[..96]) {
            Ok(sig) => Ok(Self(sig)),
            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 `Signature`.
/// # Error
/// Returns an error if the byte string does not represent a point in the curve.
Convert a string of bytes into a `Signature`.
Convert a string of bytes into a ` Signature ` .
pub fn from_bytes(bytes: &[u8]) -> Result<Self, AtmsError> {
        match BlstSig::from_bytes(&bytes[..96]) {
            Ok(sig) => Ok(Self(sig)),
            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 BlstSig :: from_bytes ( & bytes [ .. 96 ] ) { Ok ( sig ) => Ok ( Self ( sig ) ) , Err ( e ) => Err ( blst_err_to_atms ( e ) . expect_err ( " " ) ) } }
Convert a string of bytes into a `Signature`.
Convert a string of bytes into a ` Signature ` .
bytes
&[u8]
error
Returns an error if the byte string does not represent a point in the curve.
Returns an error if the byte string does not represent a point in the curve .