pub trait Commit {
    type Input;
    type Output;
    type Randomizer;

    fn commit(
        &self,
        input: &[Self::Input],
        randomizer: &Self::Randomizer
    ) -> Result<Self::Output, Error>; }
Expand description

A trait for a commitment scheme.

Required Associated Types§

Required Methods§

Returns the commitment to the given input and randomizer.

Implementations on Foreign Types§

Returns the Pedersen commitment of the given input and randomizer as a field element.

Returns the BHP commitment of the given input and randomizer as a field element.

Implementors§