pub fn sign(&self, data: &[u8]) -> Signature {
        if let Some(sig) = self.sign_using_bls(data) {
            sig
        } else {
            self.sign_using_ed25519(data)
        }
    }
/// Signs with the BLS if any, else the Ed25519.
Signs with the BLS if any, else the Ed25519.
Signs with the BLS if any else the Ed25519 .
pub fn sign(&self, data: &[u8]) -> Signature {
        if let Some(sig) = self.sign_using_bls(data) {
            sig
        } else {
            self.sign_using_ed25519(data)
        }
    }
pub fn sign ( & self , data : & [ u8 ] ) -> Signature { if let Some ( sig ) = self . sign_using_bls ( data ) { sig } else { self . sign_using_ed25519 ( data ) } }
Signs with the BLS if any, else the Ed25519.
Signs with the BLS if any else the Ed25519 .
&self
data
&[u8]
&self
data
&[u8]