pub(crate) fn key_slot<K: Key>(key: K) -> u32
Helper: return the slot of a key, assuming that the representation is as we expect.
Used for testing and verify functions.