Struct commit_verify::UntaggedProtocol
source · pub struct UntaggedProtocol;
Expand description
Protocol defining commits created by using externally created hash value optionally pre-tagged.
Trait Implementations§
source§impl TryCommitVerify<MultiSource, UntaggedProtocol> for MerkleTree
impl TryCommitVerify<MultiSource, UntaggedProtocol> for MerkleTree
§Panics
Panics if the crate is compiled without rand
feature enabled and the
MultiSource doesn’t contain a static entropy.
source§type Error = Error
type Error = Error
Error type that may be reported during
TryCommitVerify::try_commit
.source§fn try_commit(source: &MultiSource) -> Result<Self, Error>
fn try_commit(source: &MultiSource) -> Result<Self, Error>
Tries to create commitment to a byte representation of a given message.
impl CommitmentProtocol for UntaggedProtocol
Auto Trait Implementations§
impl Freeze for UntaggedProtocol
impl RefUnwindSafe for UntaggedProtocol
impl Send for UntaggedProtocol
impl Sync for UntaggedProtocol
impl Unpin for UntaggedProtocol
impl UnwindSafe for UntaggedProtocol
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more