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