pub const NUM_ROUNDS: usize = 31;Expand description
Number of “round steps” used by the hasher chiplet per permutation.
For Poseidon2, we model the permutation as 31 step transitions. This corresponds to an initial external linear layer, 4 initial external (partial) rounds, 22 internal (full) rounds, and 4 terminal external (partial) rounds:
- step 0: initial external linear layer
- steps 1..=4: initial external rounds
- steps 5..=26: internal rounds
- steps 27..=30: terminal external rounds
This yields a 32-row hasher cycle (input row + 31 steps).