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.

Signature

pub trait PoseidonTrait

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