pub fn random_oracle_to_miracl_g1(domain: &str, data: &dyn UniqueHash) -> MiraclG1 {
    hash_to_miracl_g1(
        DomainSeparationContext::new(domain).as_bytes(),
        &data.unique_hash(),
    )
}
/// Computes the hash of a struct using an hash function that can be modelled as
/// a random oracle. Returns a group element of G1 in BLS12_381.
///
/// A distinct `domain` should be used for each purpose of the random oracle.
Computes the hash of a struct using an hash function that can be modelled as
a random oracle. Returns a group element of G1 in BLS12_381.

A distinct `domain` should be used for each purpose of the random oracle.
Computes the hash of a struct using an hash function that can be modelled as a random oracle . Returns a group element of G1 in BLS12_381 . A distinct ` domain ` should be used for each purpose of the random oracle .
pub fn random_oracle_to_miracl_g1(domain: &str, data: &dyn UniqueHash) -> MiraclG1 {
    hash_to_miracl_g1(
        DomainSeparationContext::new(domain).as_bytes(),
        &data.unique_hash(),
    )
}
pub fn random_oracle_to_miracl_g1 ( domain : & str , data : & dyn UniqueHash ) -> MiraclG1 { hash_to_miracl_g1 ( DomainSeparationContext :: new ( domain ) . as_bytes ( ) , & data . unique_hash ( ) , ) }
Computes the hash of a struct using an hash function that can be modelled as
a random oracle.
Computes the hash of a struct using an hash function that can be modelled as a random oracle .
domain
&str
data
&dyn UniqueHash
domain
&str
data
&dyn UniqueHash