pub trait HashToScalar {
    type Input;
    type Output;
    // Required method
    fn hash_to_scalar(
        &self,
        input: &[Self::Input],
    ) -> Result<Self::Output, Error>;
}Expand description
A trait for a hash function that projects the value to a scalar.