Module vectors

Source

Structs§

TestVector
TestVectors

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