pub trait Commitment {
    type Seed;
    type Output;

    fn new(seed: Self::Seed) -> Self;
    fn input(&mut self, input: &[u8]);
    fn finish(self) -> Self::Output;
    fn check(comm1: &Self::Output, comm2: &Self::Output) -> bool;
}
Expand description

Generic commitment scheme.

Required Associated Types

The type used to initialize a commitment.

The output type of the commitment.

Required Methods

A new commitment initialized with seed.

A method to add data to the commitment.

Complete the commitment.

Check if two commitments are equal.

Implementors