Trait snarkvm_wasm::PCCommitment[][src]

pub trait PCCommitment: CanonicalDeserialize + CanonicalSerialize + Clone + Debug + ToBytes {
    fn empty() -> Self;
fn has_degree_bound(&self) -> bool;
fn is_in_correct_subgroup_assuming_on_curve(&self) -> bool; }
Expand description

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

Required methods

Outputs a non-hiding commitment to the zero polynomial.

Does this commitment have a degree bound?

Does this commitment’s affine belong to the correct subgroup?

Implementors