A trait for creating a new Poseidon hash state.

Signature

pub impl PoseidonImpl of PoseidonTrait;

Impl functions

new

Creates an initial state with all fields set to 0.

Signature

fn new() -> HashState

Examples

use core::poseidon::PoseidonTrait;

let mut state = PoseidonTrait::new();