Struct ark_poly_commit::ipa_pc::Randomness
source · pub struct Randomness<G: AffineRepr> {
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::ScalarField
Randomness is some scalar field element.
shifted_rand: Option<G::ScalarField>
Randomness applied to the shifted commitment is some scalar field element.
Trait Implementations§
source§impl<G: AffineRepr> CanonicalDeserialize for Randomness<G>
impl<G: AffineRepr> CanonicalDeserialize for Randomness<G>
source§fn deserialize_with_mode<R: Read>(
reader: R,
compress: Compress,
validate: Validate
) -> Result<Self, SerializationError>
fn deserialize_with_mode<R: Read>( reader: R, compress: Compress, validate: Validate ) -> Result<Self, SerializationError>
The general deserialize method that takes in customization flags.
fn deserialize_compressed<R>(reader: R) -> Result<Self, SerializationError>where R: Read,
fn deserialize_compressed_unchecked<R>( reader: R ) -> Result<Self, SerializationError>where R: Read,
fn deserialize_uncompressed<R>(reader: R) -> Result<Self, SerializationError>where R: Read,
fn deserialize_uncompressed_unchecked<R>( reader: R ) -> Result<Self, SerializationError>where R: Read,
source§impl<G: AffineRepr> CanonicalSerialize for Randomness<G>
impl<G: AffineRepr> CanonicalSerialize for Randomness<G>
source§fn serialize_with_mode<W: Write>(
&self,
writer: W,
compress: Compress
) -> Result<(), SerializationError>
fn serialize_with_mode<W: Write>( &self, writer: W, compress: Compress ) -> Result<(), SerializationError>
The general serialize method that takes in customization flags.
fn serialized_size(&self, compress: Compress) -> usize
fn serialize_compressed<W>(&self, writer: W) -> Result<(), SerializationError>where W: Write,
fn compressed_size(&self) -> usize
fn serialize_uncompressed<W>(&self, writer: W) -> Result<(), SerializationError>where W: Write,
fn uncompressed_size(&self) -> usize
source§impl<G: AffineRepr> Clone for Randomness<G>
impl<G: AffineRepr> Clone for Randomness<G>
source§impl<G: AffineRepr> Debug for Randomness<G>
impl<G: AffineRepr> Debug for Randomness<G>
source§impl<G: AffineRepr> Default for Randomness<G>
impl<G: AffineRepr> Default for Randomness<G>
source§impl<G: AffineRepr> Hash for Randomness<G>
impl<G: AffineRepr> Hash for Randomness<G>
source§impl<G: AffineRepr> PCRandomness for Randomness<G>
impl<G: AffineRepr> PCRandomness for Randomness<G>
source§fn rand<R: RngCore>(
_: usize,
has_degree_bound: bool,
_: Option<usize>,
rng: &mut R
) -> Self
fn rand<R: RngCore>( _: usize, has_degree_bound: bool, _: 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.source§impl<G: AffineRepr> PartialEq<Randomness<G>> for Randomness<G>
impl<G: AffineRepr> PartialEq<Randomness<G>> for Randomness<G>
source§impl<G: AffineRepr> Valid for Randomness<G>
impl<G: AffineRepr> Valid for Randomness<G>
fn check(&self) -> Result<(), SerializationError>
fn batch_check<'a>( batch: impl Iterator<Item = &'a Self> + Send ) -> Result<(), SerializationError>where Self: 'a,
impl<G: AffineRepr> Eq for Randomness<G>
Auto Trait Implementations§
impl<G> RefUnwindSafe for Randomness<G>where <G as AffineRepr>::ScalarField: RefUnwindSafe,
impl<G> Send for Randomness<G>
impl<G> Sync for Randomness<G>
impl<G> Unpin for Randomness<G>where <G as AffineRepr>::ScalarField: Unpin,
impl<G> UnwindSafe for Randomness<G>where <G as AffineRepr>::ScalarField: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CanonicalSerializeHashExt for Twhere
T: CanonicalSerialize,
impl<T> CanonicalSerializeHashExt for Twhere T: CanonicalSerialize,
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more