pub struct Query {
pub query: Vec<u16>,
}
Expand description
Indexes of the data to be read ; this will be stored onchain Note: indexes are represented with u16, matching indexes from 0 to 2¹⁶ - 1. If the SRS is made bigger, the integer type has to handle this
Fields§
§query: Vec<u16>
Implementations§
Source§impl Query
impl Query
pub fn to_polynomial( &self, domain: R2D<ScalarField>, ) -> DensePolynomial<ScalarField>
Sourcepub fn to_commitment(&self, srs: &SRS<Curve>) -> Curve
pub fn to_commitment(&self, srs: &SRS<Curve>) -> Curve
Computes the commitment to the query from its sparse form, without recomputing the polynomial
pub fn to_answer(&self, data: &Data<ScalarField>) -> Answer
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnwindSafe for Query
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