pub fn is_valid_message( network: Network, msg: &[u8], ) -> Result<(), ValidationError>
validates if slice of bytes follow rules set by the protocol implementing in the crate