[−][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
pub fn commit(msg: &MSG) -> Self
[src]
Creates a commitment to a byte representation of a given message
Provided methods
pub fn verify(&self, msg: &MSG) -> bool
[src]
Verifies commitment against the message; default implementation just
repeats the commitment to the message and check it against the self
.
Implementations on Foreign Types
impl<MSG> CommitVerify<MSG> for Hash where
MSG: AsRef<[u8]>,
[src]
MSG: AsRef<[u8]>,
impl<MSG> CommitVerify<MSG> for Hash where
MSG: AsRef<[u8]>,
[src]
MSG: AsRef<[u8]>,
impl<MSG> CommitVerify<MSG> for Hash where
MSG: AsRef<[u8]>,
[src]
MSG: AsRef<[u8]>,
impl<MSG> CommitVerify<MSG> for Hash where
MSG: AsRef<[u8]>,
[src]
MSG: AsRef<[u8]>,
impl<MSG> CommitVerify<MSG> for Hash where
MSG: AsRef<[u8]>,
[src]
MSG: AsRef<[u8]>,
impl<MSG, T> CommitVerify<MSG> for Hash<T> where
MSG: AsRef<[u8]>,
T: Tag,
[src]
MSG: AsRef<[u8]>,
T: Tag,
impl<MSG> CommitVerify<MSG> for Hash where
MSG: AsRef<[u8]>,
[src]
MSG: AsRef<[u8]>,
impl<MSG> CommitVerify<MSG> for Hash where
MSG: AsRef<[u8]>,
[src]
Loading content...MSG: AsRef<[u8]>,
Implementors
impl CommitVerify<OutpointReveal> for OutpointHash
[src]
pub fn commit(reveal: &OutpointReveal) -> Self
[src]
impl CommitVerify<Revealed> for Confidential
[src]
impl<MSG> CommitVerify<MSG> for NodeId where
MSG: AsRef<[u8]>,
[src]
MSG: AsRef<[u8]>,
impl<MSG> CommitVerify<MSG> for SchemaId where
MSG: AsRef<[u8]>,
[src]
MSG: AsRef<[u8]>,
impl<MSG> CommitVerify<MSG> for AnchorId where
MSG: AsRef<[u8]>,
[src]
MSG: AsRef<[u8]>,