Trait snarkvm_circuit::Commit
source · pub trait Commit {
type Input;
type Output;
type Randomizer;
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.