Struct ark_poly_commit::multilinear_pc::MultilinearPC [−][src]
Polynomial Commitment Scheme on multilinear extensions.
Implementations
impl<E: PairingEngine> MultilinearPC<E>[src]
pub fn setup<R: RngCore>(num_vars: usize, rng: &mut R) -> UniversalParams<E>[src]
setup
pub fn trim(
params: &UniversalParams<E>,
supported_num_vars: usize
) -> (CommitterKey<E>, VerifierKey<E>)[src]
params: &UniversalParams<E>,
supported_num_vars: usize
) -> (CommitterKey<E>, VerifierKey<E>)
Trim the universal parameters to specialize the public parameters
for multilinear polynomials to the given supported_num_vars, and returns committer key and verifier key.
supported_num_vars should be in range 1..=params.num_vars
pub fn commit(
ck: &CommitterKey<E>,
polynomial: &impl MultilinearExtension<E::Fr>
) -> Commitment<E>[src]
ck: &CommitterKey<E>,
polynomial: &impl MultilinearExtension<E::Fr>
) -> Commitment<E>
commit
pub fn open(
ck: &CommitterKey<E>,
polynomial: &impl MultilinearExtension<E::Fr>,
point: &[E::Fr]
) -> Proof<E>[src]
ck: &CommitterKey<E>,
polynomial: &impl MultilinearExtension<E::Fr>,
point: &[E::Fr]
) -> Proof<E>
On input a polynomial p and a point point, outputs a proof for the same.
pub fn check<'a>(
vk: &VerifierKey<E>,
commitment: &Commitment<E>,
point: &[E::Fr],
value: E::Fr,
proof: &Proof<E>
) -> bool[src]
vk: &VerifierKey<E>,
commitment: &Commitment<E>,
point: &[E::Fr],
value: E::Fr,
proof: &Proof<E>
) -> bool
Verifies that value is the evaluation at x of the polynomial
committed inside comm.
Auto Trait Implementations
impl<E> RefUnwindSafe for MultilinearPC<E> where
E: RefUnwindSafe,
E: RefUnwindSafe,
impl<E> Send for MultilinearPC<E>
impl<E> Sync for MultilinearPC<E>
impl<E> Unpin for MultilinearPC<E> where
E: Unpin,
E: Unpin,
impl<E> UnwindSafe for MultilinearPC<E> where
E: UnwindSafe,
E: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,