Trait scuttlebutt::commitment::Commitment
source · [−]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.