Struct ark_poly_commit::multilinear_pc::MultilinearPC[][src]

pub struct MultilinearPC<E: PairingEngine> { /* fields omitted */ }

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]

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]

commit

pub fn open(
    ck: &CommitterKey<E>,
    polynomial: &impl MultilinearExtension<E::Fr>,
    point: &[E::Fr]
) -> Proof<E>
[src]

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]

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

impl<E> Send for MultilinearPC<E>

impl<E> Sync for MultilinearPC<E>

impl<E> Unpin for MultilinearPC<E> where
    E: Unpin

impl<E> UnwindSafe for MultilinearPC<E> where
    E: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,