binius_core::protocols::fri

Function calculate_n_test_queries

source
pub fn calculate_n_test_queries<F, PS>(
    security_bits: usize,
    code: &ReedSolomonCode<PS>,
) -> Result<usize, Error>
Expand description

Calculates the number of test queries required to achieve a target security level.

Throws Error::ParameterError if the security level is unattainable given the code parameters.