Module constants

Module constants 

Source
Expand description

Constants used in Poseidon2 hash operations

Constants§

BN256_MOD_BYTES
BN256 field modulus

Functions§

bn256_modulus
Get the BN256 modulus as U256
get_round_constants_t2
Poseidon2 round constants for BN256 field These are the constants used in the Poseidon2 permutation for T=2
get_round_constants_t3
Poseidon2 round constants for BN256 field with T=3 These are the constants used in the Poseidon2 permutation for T=3