Trait ark_poly_commit::data_structures::PCRandomness
source · pub trait PCRandomness: Clone + CanonicalSerialize + CanonicalDeserialize {
// Required methods
fn empty() -> Self;
fn rand<R: RngCore>(
num_queries: usize,
has_degree_bound: bool,
num_vars: Option<usize>,
rng: &mut R
) -> Self;
}
Expand description
Defines the minimal interface of commitment randomness for any polynomial commitment scheme.
Required Methods§
sourcefn rand<R: RngCore>(
num_queries: usize,
has_degree_bound: bool,
num_vars: Option<usize>,
rng: &mut R
) -> Self
fn rand<R: RngCore>( num_queries: usize, has_degree_bound: bool, num_vars: Option<usize>, rng: &mut R ) -> Self
Samples randomness for commitments;
num_queries
specifies the number of queries that the commitment will be opened at.
has_degree_bound
indicates that the corresponding commitment has an enforced
num_vars
specifies the number of variables for multivariate commitment.
strict degree bound.