Trait PCCommitment

Source
pub trait PCCommitment:
    Clone
    + CanonicalSerialize
    + CanonicalDeserialize {
    // Required methods
    fn empty() -> Self;
    fn has_degree_bound(&self) -> bool;
}
Expand description

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

Required Methods§

Source

fn empty() -> Self

Outputs a non-hiding commitment to the zero polynomial.

Source

fn has_degree_bound(&self) -> bool

Does this commitment have a degree bound?

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<E: Pairing> PCCommitment for ark_poly_commit::kzg10::Commitment<E>

Source§

impl<E: Pairing> PCCommitment for ark_poly_commit::marlin::marlin_pc::Commitment<E>

Source§

impl<G: AffineRepr> PCCommitment for HyraxCommitment<G>

Source§

impl<G: AffineRepr> PCCommitment for ark_poly_commit::ipa_pc::Commitment<G>