Trait snarkvm_circuit::HashUncompressed
source · pub trait HashUncompressed {
type Input;
type Output;
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§
sourcefn hash_uncompressed(&self, input: &[Self::Input]) -> Self::Output
fn hash_uncompressed(&self, input: &[Self::Input]) -> Self::Output
Returns the hash of the given input.
Trait Implementations§
source§impl<E, const NUM_BITS: u8> Metrics<dyn HashUncompressed<Output = Group<E>, Input = Boolean<E>> + 'static> for Pedersen<E, NUM_BITS>where
E: Environment,
impl<E, const NUM_BITS: u8> Metrics<dyn HashUncompressed<Output = Group<E>, Input = Boolean<E>> + 'static> for Pedersen<E, NUM_BITS>where
E: Environment,
source§impl<E, const NUM_BITS: u8> OutputMode<dyn HashUncompressed<Output = Group<E>, Input = Boolean<E>> + 'static> for Pedersen<E, NUM_BITS>where
E: Environment,
impl<E, const NUM_BITS: u8> OutputMode<dyn HashUncompressed<Output = Group<E>, Input = Boolean<E>> + 'static> for Pedersen<E, NUM_BITS>where
E: Environment,
type Case = Vec<Mode, Global>
source§fn output_mode(
parameter: &<Pedersen<E, NUM_BITS> as OutputMode<dyn HashUncompressed<Output = Group<E>, Input = Boolean<E>> + 'static>>::Case
) -> Mode
fn output_mode(
parameter: &<Pedersen<E, NUM_BITS> as OutputMode<dyn HashUncompressed<Output = Group<E>, Input = Boolean<E>> + 'static>>::Case
) -> Mode
Returns the mode of the output.