Struct scuttlebutt::commitment::ShaCommitment
source · pub struct ShaCommitment {
pub seed: [u8; 32],
/* private fields */
}
Expand description
A commitment in the random oracle model using SHA256.
Fields§
§seed: [u8; 32]
The seed used to initialize the commitment.
Trait Implementations§
source§impl Commitment for ShaCommitment
impl Commitment for ShaCommitment
Auto Trait Implementations§
impl Freeze for ShaCommitment
impl RefUnwindSafe for ShaCommitment
impl Send for ShaCommitment
impl Sync for ShaCommitment
impl Unpin for ShaCommitment
impl UnwindSafe for ShaCommitment
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