Trait scuttlebutt::commitment::Commitment
source · pub trait Commitment {
type Seed;
type Output;
// Required methods
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§
Required Methods§
Object Safety§
This trait is not object safe.