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 PedersenTrait

Trait functions

new

Creates a new Pedersen hash state with the given base value.

Signature

fn new(base: felt252) -> HashState

Examples

use core::pedersen::PedersenTrait;

let mut state = PedersenTrait::new(0);
assert!(state.state == 0);