pub trait HashToScalar {
    type Input;
    type Output;

    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.

Required Associated Types§

Required Methods§

Returns the hash of the given input.

Implementations on Foreign Types§

Returns a scalar from hashing the input. This method uses truncation (up to data bits) to project onto the scalar field.

Implementors§