Module parameters

Module parameters 

Source

Traits§

PermutationParameters
Parameters for Poseidon MDS constants and rounds constants are stored as references to slices representing matrices of N_MDS_MATRIX_ROWS * N_MDS_MATRIX_COLS and N_ROUND_CONSTANTS_ROWS * N_ROUND_CONSTANTS_COLS respectively. We use this representation rather than an array because we can’t use the associated constants for dimension, requiring many generic parameters otherwise.