Struct ark_poly_commit::ipa_pc::Randomness [−][src]
pub struct Randomness<G: AffineCurve> { pub rand: G::ScalarField, pub shifted_rand: Option<G::ScalarField>, }
Expand description
Randomness hides the polynomial inside a commitment and is outputted by InnerProductArg::commit.
Fields
rand: G::ScalarFieldRandomness is some scalar field element.
shifted_rand: Option<G::ScalarField>Randomness applied to the shifted commitment is some scalar field element.
Trait Implementations
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<G> RefUnwindSafe for Randomness<G> where
<G as AffineCurve>::ScalarField: RefUnwindSafe, impl<G> Send for Randomness<G>impl<G> Sync for Randomness<G>impl<G> Unpin for Randomness<G> where
<G as AffineCurve>::ScalarField: Unpin, impl<G> UnwindSafe for Randomness<G> where
<G as AffineCurve>::ScalarField: 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 = TShould always be Self
pub fn vzip(self) -> V