Skip to main content

CommitmentKey

Trait CommitmentKey 

Source
pub trait CommitmentKey:
    Clone
    + Send
    + Sync
    + CanonicalSerialize
    + CanonicalDeserialize {
    // Required method
    fn max_scalars_len(&self) -> usize;
}
Expand description

CommitmentKey represents a commitment key (e.g., a vector of group generators for many group-based commitment schemes).

Required Methods§

Source

fn max_scalars_len(&self) -> usize

CommitmentKey::max_scalars_len returns the maximum number of scalars that can be committed to with this key.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<C: SonobeCurve, const H: bool> CommitmentKey for PedersenKey<C, H>