pub fn from_bytes(bytes: &[u8]) -> Result<Self, AtmsError> {
        match BlstPk::from_bytes(&bytes[..48]) {
            Ok(pk) => Ok(Self(pk)),
            Err(e) => Err(blst_err_to_atms(e)
                .expect_err("If deserialisation is not successful, blst returns and error different to SUCCESS."))
        }
    }
/// Convert a compressed byte string into a `PublicKey`.
///
/// # Error
/// This function fails if the bytes do not represent a compressed point of the curve.
Convert a compressed byte string into a `PublicKey`.
Convert a compressed byte string into a ` PublicKey ` .
pub fn from_bytes(bytes: &[u8]) -> Result<Self, AtmsError> {
        match BlstPk::from_bytes(&bytes[..48]) {
            Ok(pk) => Ok(Self(pk)),
            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 BlstPk :: from_bytes ( & bytes [ .. 48 ] ) { Ok ( pk ) => Ok ( Self ( pk ) ) , Err ( e ) => Err ( blst_err_to_atms ( e ) . expect_err ( " " ) ) } }
Convert a compressed byte string into a `PublicKey`.
Convert a compressed byte string into a ` PublicKey ` .
bytes
&[u8]
error
This function fails if the bytes do not represent a compressed point of the curve.
This function fails if the bytes do not represent a compressed point of the curve .