pub struct EntropyCommitment {
pub hash: [u8; 32],
pub timestamp_ms: u64,
pub previous_hash: [u8; 32],
}Expand description
Hash commitment over concatenated entropy sources.
entropy-commitment = {
1: bstr .size 32, ; SHA-256 hash of sources
2: uint, ; Timestamp (Unix epoch ms)
3: bstr .size 32 ; Previous commitment hash
}Fields§
§hash: [u8; 32]§timestamp_ms: u64§previous_hash: [u8; 32]Chain linkage.
Trait Implementations§
Source§impl Clone for EntropyCommitment
impl Clone for EntropyCommitment
Source§fn clone(&self) -> EntropyCommitment
fn clone(&self) -> EntropyCommitment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EntropyCommitment
impl Debug for EntropyCommitment
Source§impl<'de> Deserialize<'de> for EntropyCommitment
impl<'de> Deserialize<'de> for EntropyCommitment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EntropyCommitment
impl RefUnwindSafe for EntropyCommitment
impl Send for EntropyCommitment
impl Sync for EntropyCommitment
impl Unpin for EntropyCommitment
impl UnsafeUnpin for EntropyCommitment
impl UnwindSafe for EntropyCommitment
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