pub struct HashedProof {
pub proof_bytes: Vec<u8>,
pub hash: [u8; 32],
}Expand description
HashedProof is a struct that contains an encoded proof and its chained checksum.
Fields§
§proof_bytes: Vec<u8>ProofBytes is the encoded proof that is hashed.
hash: [u8; 32]Hash is the SHA256 sum of (prev_hash || proof).
Trait Implementations§
Source§impl Clone for HashedProof
impl Clone for HashedProof
Source§fn clone(&self) -> HashedProof
fn clone(&self) -> HashedProof
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HashedProof
impl Debug for HashedProof
Source§impl<'de> Deserialize<'de> for HashedProof
impl<'de> Deserialize<'de> for HashedProof
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
impl Eq for HashedProof
Source§impl PartialEq for HashedProof
impl PartialEq for HashedProof
Source§fn eq(&self, other: &HashedProof) -> bool
fn eq(&self, other: &HashedProof) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HashedProof
impl Serialize for HashedProof
impl StructuralPartialEq for HashedProof
Auto Trait Implementations§
impl Freeze for HashedProof
impl RefUnwindSafe for HashedProof
impl Send for HashedProof
impl Sync for HashedProof
impl Unpin for HashedProof
impl UnsafeUnpin for HashedProof
impl UnwindSafe for HashedProof
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