def hash_integer_to_string(integer, size=32): return serialize_hash(integer, size)[::-1].encode('hex')
def __test__(self, hash_, len_, result): self.assertEqual(serialize_hash(hash_, len_), result)
def __test__(self, list_, len_, result): self.assertEqual(serialize_list(list_, lambda h:serialize_hash(h, len_)), result)