ripemd

Unpacking ripemd160 result in python

Unpacking ripemd160 result in python Question: I am working on a program which does a lot of hashing, and in one of the steps I take a result of hashlib’s ripemd160 hash and convert it into an integer. The lines are: ripe_fruit = new(‘ripemd160’, sha256(key.to_der()).digest()) key_hash160 = struct.unpack(“<Q”, ripe_fruit.digest())[0] It gives me the error: struct.error: …

Total answers: 1