Trait snarkvm_polycommit::data_structures::PCRandomness [−][src]
pub trait PCRandomness: CanonicalSerialize + CanonicalDeserialize + Clone { fn empty() -> Self; fn rand<R: RngCore>(
num_queries: usize,
has_degree_bound: bool,
rng: &mut R
) -> Self; }
Expand description
Defines the minimal interface of commitment randomness for any polynomial commitment scheme.
Required methods
fn rand<R: RngCore>(
num_queries: usize,
has_degree_bound: bool,
rng: &mut R
) -> Self
[src]
fn rand<R: RngCore>(
num_queries: usize,
has_degree_bound: bool,
rng: &mut R
) -> Self
[src]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
strict degree bound.
Implementors
impl<E: PairingEngine> PCRandomness for snarkvm_polycommit::kzg10::Randomness<E>
[src]
impl<E: PairingEngine> PCRandomness for snarkvm_polycommit::kzg10::Randomness<E>
[src]impl<E: PairingEngine> PCRandomness for snarkvm_polycommit::marlin_pc::Randomness<E>
[src]
impl<E: PairingEngine> PCRandomness for snarkvm_polycommit::marlin_pc::Randomness<E>
[src]