pub fn calculate_checksum(payload: &[u8]) -> [u8; 4]
Calculate checksum for message payload (first 4 bytes of double SHA256)