pub struct HashCommitment<H: Digest + Clone>(/* private fields */);Expand description
calculate commitment c = H(m,r) using SHA3 CRHF. r is 256bit blinding factor, m is the commited value
Trait Implementations§
Source§impl<H: Digest + Clone> Commitment<BigInt> for HashCommitment<H>
impl<H: Digest + Clone> Commitment<BigInt> for HashCommitment<H>
Auto Trait Implementations§
impl<H> Freeze for HashCommitment<H>
impl<H> RefUnwindSafe for HashCommitment<H>where
H: RefUnwindSafe,
impl<H> Send for HashCommitment<H>where
H: Send,
impl<H> Sync for HashCommitment<H>where
H: Sync,
impl<H> Unpin for HashCommitment<H>where
H: Unpin,
impl<H> UnwindSafe for HashCommitment<H>where
H: UnwindSafe,
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