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§
Implementations on Foreign Types§
Source§impl<E, const NUM_BITS: u8> HashUncompressed for Pedersen<E, NUM_BITS>where
E: Environment,
impl<E, const NUM_BITS: u8> HashUncompressed for Pedersen<E, NUM_BITS>where
E: Environment,
Source§impl<E, const NUM_WINDOWS: u8, const WINDOW_SIZE: u8> HashUncompressed for BHPHasher<E, NUM_WINDOWS, WINDOW_SIZE>where
E: Environment,
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>
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,
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>
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.