pub struct Blake3_256<B: StarkField>(/* private fields */);Expand description
Implementation of the Hasher trait for BLAKE3 hash function with 256-bit output.
Trait Implementations§
Source§impl<B: Debug + StarkField> Debug for Blake3_256<B>
impl<B: Debug + StarkField> Debug for Blake3_256<B>
Source§impl<B: StarkField> ElementHasher for Blake3_256<B>
impl<B: StarkField> ElementHasher for Blake3_256<B>
Source§fn hash_elements<E: FieldElement<BaseField = Self::BaseField>>(
elements: &[E],
) -> Self::Digest
fn hash_elements<E: FieldElement<BaseField = Self::BaseField>>( elements: &[E], ) -> Self::Digest
Returns a hash of the provided field elements.
Source§impl<B: StarkField> Hasher for Blake3_256<B>
impl<B: StarkField> Hasher for Blake3_256<B>
Source§const COLLISION_RESISTANCE: u32 = 128u32
const COLLISION_RESISTANCE: u32 = 128u32
Collision resistance of the hash function measured in bits.
Source§fn merge(values: &[Self::Digest; 2]) -> Self::Digest
fn merge(values: &[Self::Digest; 2]) -> Self::Digest
Returns a hash of two digests. This method is intended for use in construction of
Merkle trees.
Source§fn merge_many(values: &[Self::Digest]) -> Self::Digest
fn merge_many(values: &[Self::Digest]) -> Self::Digest
Returns a hash of many digests.
Source§impl<B: PartialEq + StarkField> PartialEq for Blake3_256<B>
impl<B: PartialEq + StarkField> PartialEq for Blake3_256<B>
impl<B: Eq + StarkField> Eq for Blake3_256<B>
impl<B: StarkField> StructuralPartialEq for Blake3_256<B>
Auto Trait Implementations§
impl<B> Freeze for Blake3_256<B>
impl<B> RefUnwindSafe for Blake3_256<B>where
B: RefUnwindSafe,
impl<B> Send for Blake3_256<B>
impl<B> Sync for Blake3_256<B>
impl<B> Unpin for Blake3_256<B>where
B: Unpin,
impl<B> UnwindSafe for Blake3_256<B>where
B: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more