Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.starknet.io/llms.txt

Use this file to discover all available pages before exploring further.

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();