/// Returns a hash of the given message in `G2`.
Returns a hash of the given message in `G2`.
Returns a hash of the given message in ` G2 ` .
pub fn hash_g2<M: AsRef<[u8]>>(msg: M) -> G2 {
    let digest = sha3_256(msg.as_ref());
    //ChaChaRng::from_seed(digest).gen04()
    //let mut ra = ChaChaRng::new_unseeded();
    //ra.gen04()
    ChaChaRng::from_seed(digest).gen04()
    //G2::one()
}
pub fn hash_g2 < M : AsRef < [ u8 ] > > ( msg : M ) -> G2 { let digest = sha3_256 ( msg . as_ref ( ) ) ; //ChaChaRng::from_seed(digest).gen04() //let mut ra = ChaChaRng::new_unseeded(); //ra.gen04() ChaChaRng :: from_seed ( digest ) . gen04 ( ) //G2::one() }
Returns a hash of the given message in `G2`.
Returns a hash of the given message in ` G2 ` .
msg
M