Struct ark_poly_commit::marlin::marlin_pc::Randomness [−][src]
pub struct Randomness<F: PrimeField, P: UVPolynomial<F>> { pub rand: Randomness<F, P>, pub shifted_rand: Option<Randomness<F, P>>, }
Expand description
Randomness
hides the polynomial inside a commitment. It is output by KZG10::commit
.
Fields
rand: Randomness<F, P>
Commitment randomness for a KZG10 commitment.
shifted_rand: Option<Randomness<F, P>>
Commitment randomness for a KZG10 commitment to the shifted polynomial.
This is None
if the committed polynomial does not enforce a strict
degree bound.
Trait Implementations
impl<'a, F: PrimeField, P: UVPolynomial<F>> Add<(F, &'a Randomness<F, P>)> for Randomness<F, P>
[src]
impl<'a, F: PrimeField, P: UVPolynomial<F>> Add<(F, &'a Randomness<F, P>)> for Randomness<F, P>
[src]impl<'a, F: PrimeField, P: UVPolynomial<F>> AddAssign<&'a Randomness<F, P>> for Randomness<F, P>
[src]
impl<'a, F: PrimeField, P: UVPolynomial<F>> AddAssign<&'a Randomness<F, P>> for Randomness<F, P>
[src]Performs the +=
operation. Read more
impl<'a, F: PrimeField, P: UVPolynomial<F>> AddAssign<(F, &'a Randomness<F, P>)> for Randomness<F, P>
[src]
impl<'a, F: PrimeField, P: UVPolynomial<F>> AddAssign<(F, &'a Randomness<F, P>)> for Randomness<F, P>
[src]Performs the +=
operation. Read more
Reads Self
from reader
.
Reads Self
from reader
without compression.
Reads self
from reader
without compression, and without performing
validity checks. Should be used only when the input is trusted. Read more
Serializes self
into writer
.
It is left up to a particular type for how it strikes the
serialization efficiency vs compression tradeoff.
For standard types (e.g. bool
, lengths, etc.) typically an uncompressed
form is used, whereas for algebraic types compressed forms are used. Read more
Serializes self
into writer
without compression.
Serializes self
into writer
without compression, and without
performing validity checks. Should be used only when there is no
danger of adversarial manipulation of the output. Read more
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. Read more
Auto Trait Implementations
impl<F, P> RefUnwindSafe for Randomness<F, P> where
F: RefUnwindSafe,
P: RefUnwindSafe,
impl<F, P> Send for Randomness<F, P> where
P: Send,
impl<F, P> Sync for Randomness<F, P> where
P: Sync,
impl<F, P> Unpin for Randomness<F, P> where
F: Unpin,
P: Unpin,
impl<F, P> UnwindSafe for Randomness<F, P> where
F: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
fn hash_uncompressed<H>(&self) -> GenericArray<u8, <H as Digest>::OutputSize> where
H: Digest,
[src]type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V