/// Serialize a head as bytes.
Serialize a head as bytes.
Serialize a head as bytes .
pub fn to_bytes(&self) -> [u8; 40] {
        let mut result = [0_u8; 40];
        result[ 0.. 8].copy_from_slice(&u64_to_le_bytes(self.roots.eavt_root.0));
        result[ 8..16].copy_from_slice(&u64_to_le_bytes(self.roots.aevt_root.0));
        result[16..24].copy_from_slice(&u64_to_le_bytes(self.roots.avet_root.0));
        result[24..32].copy_from_slice(&u64_to_le_bytes(self.id_gen.next_even));
        result[32..40].copy_from_slice(&u64_to_le_bytes(self.id_gen.next_odd));
        result
    }
pub fn to_bytes ( & self ) -> [ u8 ; 40 ] { let mut result = [ 0_u8 ; 40 ] ; result [ 0 .. 8 ] . copy_from_slice ( & u64_to_le_bytes ( self . roots . eavt_root . 0 ) ) ; result [ 8 .. 16 ] . copy_from_slice ( & u64_to_le_bytes ( self . roots . aevt_root . 0 ) ) ; result [ 16 .. 24 ] . copy_from_slice ( & u64_to_le_bytes ( self . roots . avet_root . 0 ) ) ; result [ 24 .. 32 ] . copy_from_slice ( & u64_to_le_bytes ( self . id_gen . next_even ) ) ; result [ 32 .. 40 ] . copy_from_slice ( & u64_to_le_bytes ( self . id_gen . next_odd ) ) ; result }
Serialize a head as bytes.
Serialize a head as bytes .
&self