fn sign_raw_bytes(&self, msg: &[u8]) -> Signature {
        let mut proto = Signature::new();

        proto.set_algorithm(self.algorithm);
        proto.set_public_key(Vec::from(self.public_key_bytes()));
        proto.set_value(Vec::from(self.keypair.sign(msg).as_ref()));

        proto
    }
/// Compute a signature on a raw byte vector
/// We avoid exposing this directly for domain separation reasons
Compute a signature on a raw byte vector
We avoid exposing this directly for domain separation reasons
Compute a signature on a raw byte vector We avoid exposing this directly for domain separation reasons
fn sign_raw_bytes(&self, msg: &[u8]) -> Signature {
        let mut proto = Signature::new();
        proto.set_algorithm(self.algorithm);
        proto.set_public_key(Vec::from(self.public_key_bytes()));
        proto.set_value(Vec::from(self.keypair.sign(msg).as_ref()));
        proto
    }
fn sign_raw_bytes ( & self , msg : & [ u8 ] ) -> Signature { let mut proto = Signature :: new ( ) ; proto . set_algorithm ( self . algorithm ) ; proto . set_public_key ( Vec :: from ( self . public_key_bytes ( ) ) ) ; proto . set_value ( Vec :: from ( self . keypair . sign ( msg ) . as_ref ( ) ) ) ; proto }
Compute a signature on a raw byte vector
We avoid exposing this directly for domain separation reasons
Compute a signature on a raw byte vector We avoid exposing this directly for domain separation reasons
&self
msg
&[u8]
&self
msg
&[u8]