aztec-nr - poseidon::poseidon2

Struct Poseidon2Hasher

pub struct Poseidon2Hasher
{ /* private fields */ }

Trait implementations

impl Default for Poseidon2Hasher

pub fn default() -> Self

impl Hasher for Poseidon2Hasher

pub fn finish(self) -> Field pub fn finish_ref(&mut self: &Self) -> Field

Returns the hash value without consuming the hasher. Override this for more efficient implementations that avoid copying. TODO: deprecate finish() and replace it

pub fn write(&mut self, input: Field)