fn compute_checksum<T: AsBytes>(v: &T) -> u8