Skip to main content

poseidon2_round_numbers_128

Function poseidon2_round_numbers_128 

Source
pub const fn poseidon2_round_numbers_128<F: PrimeField64>(
    width: usize,
    d: u64,
) -> Result<(usize, usize), Poseidon2RoundNumbersError>
Expand description

Return the full and partial round counts needed for 128-bit security.

ยงErrors

Returns an error when d does not define a permutation over F.

Returns an error when the precomputed table has no matching parameter set.