Trait snarkvm_polycommit::data_structures::PCPreparedCommitment[][src]

pub trait PCPreparedCommitment<Unprepared: PCCommitment>: Clone {
    fn prepare(commitment: &Unprepared) -> Self;
}
Expand description

Defines the minimal interface of prepared commitments for any polynomial commitment scheme.

Required methods

fn prepare(commitment: &Unprepared) -> Self[src]

Prepare

Implementors

impl<E: PairingEngine> PCPreparedCommitment<Commitment<E>> for snarkvm_polycommit::sonic_pc::PreparedCommitment<E>[src]

fn prepare(comm: &Commitment<E>) -> Self[src]

prepare PreparedCommitment from Commitment

impl<E: PairingEngine> PCPreparedCommitment<Commitment<E>> for snarkvm_polycommit::marlin_pc::PreparedCommitment<E>[src]

fn prepare(commitment: &Commitment<E>) -> Self[src]

Prepare commitment to a polynomial that optionally enforces a degree bound.