pub struct Data<F: PrimeField> {
pub data: Vec<F>,
}
Fields§
§data: Vec<F>
Implementations§
Source§impl<F: PrimeField> Data<F>
impl<F: PrimeField> Data<F>
pub fn is_empty(&self) -> bool
Sourcepub fn to_polynomial(&self, domain: R2D<F>) -> DensePolynomial<F>
pub fn to_polynomial(&self, domain: R2D<F>) -> DensePolynomial<F>
Returns the polynomial that correspond to the data. If the data is bigger than domain’s size, the additionnal points will be ignored. If the data is smaller, it is padded with zeros
Sourcepub fn to_commitment<G: KimchiCurve<ScalarField = F>>(&self, srs: &SRS<G>) -> G
pub fn to_commitment<G: KimchiCurve<ScalarField = F>>(&self, srs: &SRS<G>) -> G
Commit a data
of length smaller than SRS_SIZE
If greater data is provided, anything above SRS_SIZE
is ignored
Sourcepub fn apply_inplace(&mut self, diff: &Diff<F>)
pub fn apply_inplace(&mut self, diff: &Diff<F>)
Modifies inplace the provided data with diff
Auto Trait Implementations§
impl<F> Freeze for Data<F>
impl<F> RefUnwindSafe for Data<F>where
F: RefUnwindSafe,
impl<F> Send for Data<F>
impl<F> Sync for Data<F>
impl<F> Unpin for Data<F>where
F: Unpin,
impl<F> UnwindSafe for Data<F>where
F: 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