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