pub fn extend_and_hash(id: &Hash, val: &[u8]) -> Hash
Return the hash of the given hash extended with the given value.