[][src]Function signatory::sign

pub fn sign<S>(signer: &dyn Signer<S>, msg: &[u8]) -> Result<S, Error> where
    S: Signature

Sign the given message (byte slice) with the given Signer, returning a signature on success.