[−][src]Trait lnpbp::commit_verify::CommitVerify
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
Loading content...Provided methods
fn verify(&self, msg: &MSG) -> bool
Verifies commitment against the message; default implementation just
repeats the commitment to the message and check it against the self
.
Implementors
impl CommitVerify<OutpointReveal> for OutpointHash
[src]
fn commit(reveal: &OutpointReveal) -> Self
[src]
impl<HT, MSG> CommitVerify<MSG> for HT where
HT: Hash,
MSG: AsRef<[u8]>,
[src]
HT: Hash,
MSG: AsRef<[u8]>,