> ## 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.

# core::poseidon::PoseidonTrait

## Signature

```rust theme={null}
pub trait PoseidonTrait
```

## Trait functions

### new

Creates an initial state with all fields set to 0.

#### Signature

```rust theme={null}
fn new() -> HashState
```

#### Examples

```rust theme={null}
use core::poseidon::PoseidonTrait;

let mut state = PoseidonTrait::new();
```
