Beispiel #1
0
 def test_hashlink2(self):
     for i in xrange(100):
         d = random_bytes(random.randrange(2048))
         d2 = random_bytes(random.randrange(2048))
         x = data.prefix_to_hash_link(d)
         assert data.check_hash_link(x,
                                     d2) == futurocoin_data.hash256(d + d2)
Beispiel #2
0
 def test_hashlink3(self):
     for i in xrange(100):
         d = random_bytes(random.randrange(2048))
         d2 = random_bytes(random.randrange(200))
         d3 = random_bytes(random.randrange(2048))
         x = data.prefix_to_hash_link(d + d2, d2)
         assert data.check_hash_link(x, d3, d2) == ezoncoin_data.hash256(d + d2 + d3)
Beispiel #3
0
 def test_hashlink3(self):
     for i in xrange(100):
         d = random_bytes(random.randrange(2048))
         d2 = random_bytes(random.randrange(200))
         d3 = random_bytes(random.randrange(2048))
         x = data.prefix_to_hash_link(d + d2, d2)
         assert data.check_hash_link(x, d3, d2) == bitcoin_data.hash256(d + d2 + d3)
Beispiel #4
0
 def test_hashlink1(self):
     for i in xrange(100):
         d = random_bytes(random.randrange(2048))
         x = data.prefix_to_hash_link(d)
         assert data.check_hash_link(x, '') == ezoncoin_data.hash256(d)
Beispiel #5
0
 def test_hashlink1(self):
     for i in xrange(100):
         d = random_bytes(random.randrange(2048))
         x = data.prefix_to_hash_link(d)
         assert data.check_hash_link(x, '') == dash_data.hash256(d)
Beispiel #6
0
 def test_hashlink2(self):
     for i in xrange(100):
         d = random_bytes(random.randrange(2048))
         d2 = random_bytes(random.randrange(2048))
         x = data.prefix_to_hash_link(d)
         assert data.check_hash_link(x, d2) == bitcoin_data.hash256(d + d2)