pub struct LayerHashes {
pub hash_algorithm: u8,
pub hash_size: u8,
pub layer_count: u32,
pub merkle_root: [u8; 32],
pub layer_hashes: Vec<[u8; 32]>,
}Expand description
The LHAS chunk.
Fields§
§hash_algorithm: u8Hash algorithm. 0x01 is SHA-256.
hash_size: u8Digest length. 32 for SHA-256.
layer_count: u32Layer count, which must equal HEAD.total_layers.
merkle_root: [u8; 32]Root of the Merkle tree over layer_hashes.
layer_hashes: Vec<[u8; 32]>Leaf hashes, one per layer.
Implementations§
Trait Implementations§
Source§impl Clone for LayerHashes
impl Clone for LayerHashes
Source§fn clone(&self) -> LayerHashes
fn clone(&self) -> LayerHashes
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 LayerHashes
impl Debug for LayerHashes
impl Eq for LayerHashes
Source§impl PartialEq for LayerHashes
impl PartialEq for LayerHashes
impl StructuralPartialEq for LayerHashes
Auto Trait Implementations§
impl Freeze for LayerHashes
impl RefUnwindSafe for LayerHashes
impl Send for LayerHashes
impl Sync for LayerHashes
impl Unpin for LayerHashes
impl UnsafeUnpin for LayerHashes
impl UnwindSafe for LayerHashes
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