pub struct Hasher { /* private fields */ }Expand description
A streaming Poseidon2 hasher.
Supports three modes via domain separation:
- Plain hash (
new) - Keyed hash (
new_keyed) - Key derivation (
new_derive_key)
Data is absorbed in 56-byte blocks (8 Goldilocks elements × 7 bytes each).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Hasher
impl RefUnwindSafe for Hasher
impl Send for Hasher
impl Sync for Hasher
impl Unpin for Hasher
impl UnsafeUnpin for Hasher
impl UnwindSafe for Hasher
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