pub trait HashUncompressed {
type Input;
type Output;
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
sourceimpl<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,
sourcefn 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.
type Input = bool
type Output = Group<E>
sourceimpl<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,
sourcefn 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>
sourceimpl<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,
sourcefn hash_uncompressed(
&self,
input: &[<Pedersen<E, NUM_BITS> as HashUncompressed>::Input]
) -> Result<<Pedersen<E, NUM_BITS> as HashUncompressed>::Output, Error>
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.