fn check_hiding_bound(hiding_poly_degree: usize, num_powers: usize) -> Result<(), Error> {
        if hiding_poly_degree == 0 {
            Err(Error::HidingBoundIsZero)
        } else if hiding_poly_degree >= num_powers {
            // The above check uses `>=` because committing to a hiding poly with
            // degree `hiding_poly_degree` requires `hiding_poly_degree + 1`
            // powers.
            Err(Error::HidingBoundToolarge {
                hiding_poly_degree,
                num_powers,
            })
        } else {
            Ok(())
        }
    }
/// Check that the powers support the hiding bound
Check that the powers support the hiding bound
Check that the powers support the hiding bound
fn check_hiding_bound(hiding_poly_degree: usize, num_powers: usize) -> Result<(), Error> {
        if hiding_poly_degree == 0 {
            Err(Error::HidingBoundIsZero)
        } else if hiding_poly_degree >= num_powers {
            // The above check uses `>=` because committing to a hiding poly with
            // degree `hiding_poly_degree` requires `hiding_poly_degree + 1`
            // powers.
            Err(Error::HidingBoundToolarge {
                hiding_poly_degree,
                num_powers,
            })
        } else {
            Ok(())
        }
    }
fn check_hiding_bound ( hiding_poly_degree : usize , num_powers : usize ) -> Result < ( ) , Error > { if hiding_poly_degree == 0 { Err ( Error :: HidingBoundIsZero ) } else if hiding_poly_degree >= num_powers { // The above check uses `>=` because committing to a hiding poly with // degree `hiding_poly_degree` requires `hiding_poly_degree + 1` // powers. Err ( Error :: HidingBoundToolarge { hiding_poly_degree , num_powers , } ) } else { Ok ( ( ) ) } }
Check that the powers support the hiding bound
Check that the powers support the hiding bound
hiding_poly_degree
usize
num_powers
usize