pub fn inventory_hash(inventory: &Inventory) -> u64
Returns a unique hash for an inventory; used by backends.