pub trait HashUncompressed {
    type Input;
    type Output;

    // Required method
    fn hash_uncompressed(&self, input: &[Self::Input]) -> Self::Output;
}
Expand description

A trait for a hash function of an uncompressed variant.

Required Associated Types§

Required Methods§

source

fn hash_uncompressed(&self, input: &[Self::Input]) -> Self::Output

Returns the hash of the given input.

Trait Implementations§

source§

impl<E: Environment, const NUM_BITS: u8> Metrics<dyn HashUncompressed<Output = Group<E>, Input = Boolean<E>>> for Pedersen<E, NUM_BITS>

§

type Case = Vec<Mode>

source§

fn count(case: &Self::Case) -> Count

Returns the number of constants, public inputs, private inputs, and constraints.
source§

impl<E: Environment, const NUM_BITS: u8> OutputMode<dyn HashUncompressed<Output = Group<E>, Input = Boolean<E>>> for Pedersen<E, NUM_BITS>

§

type Case = Vec<Mode>

source§

fn output_mode(parameter: &Self::Case) -> Mode

Returns the mode of the output.

Implementors§

source§

impl<E: Environment, const NUM_BITS: u8> HashUncompressed for Pedersen<E, NUM_BITS>

§

type Input = Boolean<E>

§

type Output = Group<E>

source§

impl<E: Environment, const NUM_WINDOWS: u8, const WINDOW_SIZE: u8> HashUncompressed for BHP<E, NUM_WINDOWS, WINDOW_SIZE>

§

type Input = Boolean<E>

§

type Output = Group<E>