INNER CODE UNIT · Rust
trim
arkworks-rs/poly-commit · poly-commit/src/lib.rs:202
fn trim(
pp: &Self::UniversalParams,
supported_degree: usize,
supported_hiding_bound: usize,
enforced_degree_bounds: Option<&[usize]>,
) -> Result<(Self::CommitterKey, Self::VerifierKey), Self::Error>;
/// Outputs a list of commitments to `polynomials`. If `polynomials[i].is_hiding()`,
/// then the `i`-th commitment is hiding up to `polynomials.hiding_bound()` queries.
/// `rng` should not be `None` if `polynomials[i].is_hiding() == true` for any `i`.
///
/// If for some `i`, `polynomials[i].is_hiding() == false`, then the
/// corresponding randomness is `Self::Randomness::empty()`.
///
/// If for some `i`, `polynomials[i].degree_bound().is_some()`, then that
/// polynomial will have the corresponding degree bound enforced.
fn commit<'a>(
ck: &Self::CommitterKey,