Trait commit_verify::api::CommitVerify [−][src]
pub trait CommitVerify<M> where
Self: Eq + Sized, {
fn commit(msg: &M) -> Self;
fn verify(&self, msg: &M) -> bool { ... }
}
Expand description
Trait for commit-verify scheme. A message for the commitment may be any
structure that can be represented as a byte array (i.e. implements
AsRef<[u8]>
).