Trait commit_verify::CommitVerify
source · pub trait CommitVerify<Msg, Protocol: CommitmentProtocol>{
// Required method
fn commit(msg: &Msg) -> Self;
// Provided method
fn verify(&self, msg: &Msg) -> 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]>
).
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.