/// Deterministically create a BLS12-381 field element from a hash
///
/// # Arguments
/// * `hash` a Sha256 hash which is finalized and consumed.
/// # Returns
/// A field element
Deterministically create a BLS12-381 field element from a hash
Deterministically create a BLS12 - 381 field element from a hash
pub fn hash_to_fr(hash: Sha256) -> Scalar {
    let hash = hash.finish();
    let mut rng = ChaChaRng::from_seed(hash);
    random_bls12_381_scalar(&mut rng)
}
pub fn hash_to_fr ( hash : Sha256 ) -> Scalar { let hash = hash . finish ( ) ; let mut rng = ChaChaRng :: from_seed ( hash ) ; random_bls12_381_scalar ( & mut rng ) }
Deterministically create a BLS12-381 field element from a hash
Deterministically create a BLS12 - 381 field element from a hash
A field element
A field element
hash
Sha256