Struct winter_crypto::hashers::Blake3_256
source · 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§impl<B: PartialEq + StarkField> PartialEq for Blake3_256<B>
impl<B: PartialEq + StarkField> PartialEq for Blake3_256<B>
source§fn eq(&self, other: &Blake3_256<B>) -> bool
fn eq(&self, other: &Blake3_256<B>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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