pub fn from_security_level(security_level: u16) -> Result<Parameters, ParametersError> {
        let parameters = Parameters {
            security_level,
            security_zk: security_level - 3,
            security_soundness: security_level - 2,
            field_size_bits: 2 * security_level,
            hash_to_prime_bits: 2 * security_level - 2,
        };

        parameters.is_valid()?;
        Ok(parameters)
    }
/// Derive parameters for a desired security level.
Derive parameters for a desired security level.
Derive parameters for a desired security level .
pub fn from_security_level(security_level: u16) -> Result<Parameters, ParametersError> {
        let parameters = Parameters {
            security_level,
            security_zk: security_level - 3,
            security_soundness: security_level - 2,
            field_size_bits: 2 * security_level,
            hash_to_prime_bits: 2 * security_level - 2,
        };
        parameters.is_valid()?;
        Ok(parameters)
    }
pub fn from_security_level ( security_level : u16 ) -> Result < Parameters , ParametersError > { let parameters = Parameters { security_level , security_zk : security_level - 3 , security_soundness : security_level - 2 , field_size_bits : 2 * security_level , hash_to_prime_bits : 2 * security_level - 2 , } ; parameters . is_valid ( ) ? ; Ok ( parameters ) }
Derive parameters for a desired security level.
Derive parameters for a desired security level .
security_level
u16
security_level
u16