def _test():
    import ziftr_hash  
    import binascii
        
    header_bin = binascii.unhexlify('700000005d385ba114d079970b29a9418fd0549e7d68a95c7f168621a314201000000000578586d149fd07b22f3a8a347c516de7052f034d2b76ff68e0d6ecff9b77a45489e3fd511732011df0731000')

    hash_bin = ziftr_hash.getPoWHash(header_bin)
    #hash_bin = ziftr_hash.getPoWHash(''.join([ header_bin[i*4:i*4+4][::-1] for i in range(0, 20) ]))
    block_hash_hex = hash_bin[::-1].encode('hex_codec')    
    print block_hash_hex

if __name__ == '__main__':
    _test()



