Skip to main content
Module vectors
export_
test_
vectors
0.3.0
Module vectors
Module Items
Structs
Functions
In crate export_
test_
vectors
export_test_vectors
Module
vectors
Copy item path
Source
Structs
§
Test
Vector
Test
Vectors
Functions
§
generate
creates a set of test vectors Uses a custom seed if provided, otherwise uses a default fixed seed for reproducible test vectors. The deterministic parameter (in write_es5) only affects ES5 header generation.
poseidon
🔒
Computes the poseidon hash of several field elements. Uses the ‘basic’ configuration with N states and M rounds.
rand_
fields
🔒
generates a vector of
length
field elements using the provided RNG
write_
es5