pub fn is_valid(&self) -> Result<(), ParametersError> {
        let d = 1 + (self.security_zk + self.security_soundness + 2) / self.hash_to_prime_bits;
        if d * self.hash_to_prime_bits + 2 <= self.field_size_bits {
            Ok(())
        } else {
            Err(ParametersError::InvalidParameters)
        }
    }
/// Check the parameters are valid according to section 4.5 of
/// the paper.
Check the parameters are valid according to section 4.5 of
the paper.
Check the parameters are valid according to section 4 . 5 of the paper .
pub fn is_valid(&self) -> Result<(), ParametersError> {
        let d = 1 + (self.security_zk + self.security_soundness + 2) / self.hash_to_prime_bits;
        if d * self.hash_to_prime_bits + 2 <= self.field_size_bits {
            Ok(())
        } else {
            Err(ParametersError::InvalidParameters)
        }
    }
pub fn is_valid ( & self ) -> Result < ( ) , ParametersError > { let d = 1 + ( self . security_zk + self . security_soundness + 2 ) / self . hash_to_prime_bits ; if d * self . hash_to_prime_bits + 2 <= self . field_size_bits { Ok ( ( ) ) } else { Err ( ParametersError :: InvalidParameters ) } }
Check the parameters are valid according to section 4.5 of
the paper.
Check the parameters are valid according to section 4 . 5 of the paper .
&self
&self