pub trait HashUncompressed {
    type Input;
    type Output;

    // Required method
    fn hash_uncompressed(
        &self,
        input: &[Self::Input]
    ) -> Result<Self::Output, Error>;
}
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] ) -> Result<Self::Output, Error>

Returns the hash of the given input.

Implementations on Foreign Types§

source§

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

source§

fn hash_uncompressed( &self, input: &[<Pedersen<E, NUM_BITS> as HashUncompressed>::Input] ) -> Result<<Pedersen<E, NUM_BITS> as HashUncompressed>::Output, Error>

Returns the Pedersen hash of the given input as a group element.

§

type Input = bool

§

type Output = Group<E>

source§

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

source§

fn hash_uncompressed( &self, input: &[<BHPHasher<E, NUM_WINDOWS, WINDOW_SIZE> as HashUncompressed>::Input] ) -> Result<<BHPHasher<E, NUM_WINDOWS, WINDOW_SIZE> as HashUncompressed>::Output, Error>

Returns the BHP hash of the given input as an affine group element.

This uncompressed variant of the BHP hash function is provided to support the BHP commitment scheme, as it is typically not used by applications.

§

type Input = bool

§

type Output = Group<E>

source§

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

source§

fn hash_uncompressed( &self, input: &[<BHP<E, NUM_WINDOWS, WINDOW_SIZE> as HashUncompressed>::Input] ) -> Result<<BHP<E, NUM_WINDOWS, WINDOW_SIZE> as HashUncompressed>::Output, Error>

Returns the BHP hash of the given input as an affine group element.

This uncompressed variant of the BHP hash function is provided to support the BHP commitment scheme, as it is typically not used by applications.

§

type Input = bool

§

type Output = Group<E>

Implementors§