pub trait Commit {
type Input;
type Output;
type Randomizer;
// Required method
fn commit(
&self,
input: &[Self::Input],
randomizer: &Self::Randomizer,
) -> Self::Output;
}
Expand description
A trait for a commitment scheme.
Required Associated Types§
Required Methods§
Sourcefn commit(
&self,
input: &[Self::Input],
randomizer: &Self::Randomizer,
) -> Self::Output
fn commit( &self, input: &[Self::Input], randomizer: &Self::Randomizer, ) -> Self::Output
Returns the commitment to the given input and randomizer.