Enum miden_air::HashFunction
source · #[repr(u8)]
pub enum HashFunction {
Blake3_192,
Blake3_256,
Rpo256,
}
Expand description
A hash function used during STARK proof generation.
Variants§
Blake3_192
BLAKE3 hash function with 192-bit output.
Blake3_256
BLAKE3 hash function with 256-bit output.
Rpo256
RPO hash function with 256-bit output.
Implementations§
source§impl HashFunction
impl HashFunction
sourcepub const fn collision_resistance(&self) -> u32
pub const fn collision_resistance(&self) -> u32
Returns the collision resistance level (in bits) of this hash function.
Trait Implementations§
source§impl Clone for HashFunction
impl Clone for HashFunction
source§fn clone(&self) -> HashFunction
fn clone(&self) -> HashFunction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HashFunction
impl Debug for HashFunction
source§impl Default for HashFunction
impl Default for HashFunction
source§impl Hash for HashFunction
impl Hash for HashFunction
source§impl PartialEq<HashFunction> for HashFunction
impl PartialEq<HashFunction> for HashFunction
source§fn eq(&self, other: &HashFunction) -> bool
fn eq(&self, other: &HashFunction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.