Custom packing of hex-formatted hashes or mix of them