Checksum
KirylMoisa opened this issue · comments
How to get checksum for merkle proof?
Given a Merkle-proof proof
, and assuming you work with the current develop branch (2bb511f), do:
from pymerkle.hashing import HashEngine
offset = proof.body['offset']
path = proof.body['path']
engine = HashEngine(**proof.get_verification_params())
checksum = engine.multi_hash(path, offset)