pub trait HashToGroup {
type Input;
type Output;
// Required method
fn hash_to_group(&self, input: &[Self::Input]) -> Result<Self::Output>;
}
Expand description
A trait for a hash function that projects the value to an affine group element.
Required Associated Types§
Required Methods§
sourcefn hash_to_group(&self, input: &[Self::Input]) -> Result<Self::Output>
fn hash_to_group(&self, input: &[Self::Input]) -> Result<Self::Output>
Returns the hash of the given input.