コード例 #1
0
 def hash_header(header):
     header_bytes = header_to_string(header).decode('hex')
     if (header["version"] >= 7):
         hash_bytes = Hash(header_bytes) # new rules, sha256
     else:
         hash_bytes = HashScrypt(header_bytes) # old scrypt header hashing
     return rev_hex(hash_bytes.encode('hex'))
コード例 #2
0
 def hash_header(header):
     return rev_hex(Hash(header_to_string(header).decode('hex')).encode('hex'))
コード例 #3
0
 def hash_header(header):
     return rev_hex(
         HashX11(header_to_string(header).decode('hex')).encode('hex'))
コード例 #4
0
 def hash_header(header):
     return rev_hex(
         coinhash.NeoscryptHash(
             header_to_string(header).decode('hex')).encode('hex'))