1 2 3
pub(crate) fn checksum(bytes: &[u8]) -> u8 { 0u8.wrapping_sub(bytes.iter().fold(0, |acc, &byte| acc.wrapping_add(byte))) }