pub fn value_hash(ty: u8, canonical_payload: &[u8]) -> u64
Value hash for a canonical payload under the given type tag.