pub fn sign(&self, msg: &[u8]) -> Signature {
        // This `unwrap` is erased in release mode.
        let keypair = ed25519_dalek::Keypair::from_bytes(self.complete_key.as_ref()).unwrap();
        let sig = keypair.sign(msg).to_bytes();
        Signature::new(self.keynum, sig)
    }
/// Signs a message with this secret key and returns the signature.
Signs a message with this secret key and returns the signature.
Signs a message with this secret key and returns the signature .
pub fn sign(&self, msg: &[u8]) -> Signature {
        // This `unwrap` is erased in release mode.
        let keypair = ed25519_dalek::Keypair::from_bytes(self.complete_key.as_ref()).unwrap();
        let sig = keypair.sign(msg).to_bytes();
        Signature::new(self.keynum, sig)
    }
pub fn sign ( & self , msg : & [ u8 ] ) -> Signature { // This `unwrap` is erased in release mode. let keypair = ed25519_dalek :: Keypair :: from_bytes ( self . complete_key . as_ref ( ) ) . unwrap ( ) ; let sig = keypair . sign ( msg ) . to_bytes ( ) ; Signature :: new ( self . keynum , sig ) }
Signs a message with this secret key and returns the signature.
Signs a message with this secret key and returns the signature .
&self
msg
&[u8]
&self
msg
&[u8]