pub fn sign_message(message: &[u8], secret_key: &SecretKey) -> Signature {
    let mut signature = hash_message_to_g1(message);
    signature.mul_assign(*secret_key);
    signature
}
/// Signs a message with the given secret key.
///
/// Note:  As the whole message needs to be provided, this is unsuitable for
/// signing large chunks of data or streaming data.  For large chunks of data
/// it is better to hash the data separately and provide the digest to
///   sign_hash(digest: [u8: 32], secret_key: &SecretKey) // unimplemented.
Signs a message with the given secret key.
Note:  As the whole message needs to be provided, this is unsuitable for
signing large chunks of data or streaming data.  For large chunks of data
it is better to hash the data separately and provide the digest to
sign_hash(digest: [u8: 32], secret_key: &SecretKey) // unimplemented.
Signs a message with the given secret key . Note : As the whole message needs to be provided this is unsuitable for signing large chunks of data or streaming data . For large chunks of data it is better to hash the data separately and provide the digest to sign_hash ( digest : [ u8 : 32 ] secret_key : &SecretKey ) // unimplemented .
pub fn sign_message(message: &[u8], secret_key: &SecretKey) -> Signature {
    let mut signature = hash_message_to_g1(message);
    signature.mul_assign(*secret_key);
    signature
}
pub fn sign_message ( message : & [ u8 ] , secret_key : & SecretKey ) -> Signature { let mut signature = hash_message_to_g1 ( message ) ; signature . mul_assign ( * secret_key ) ; signature }
Signs a message with the given secret key.
Signs a message with the given secret key .
message
&[u8]
secret_key
&SecretKey
message
&[u8]
secret_key
&SecretKey