import hashlib


def leaf_merkle_tree_hash(b):
    """
    Calculate the Merkle Tree Leaf Hash for an object (HASH(chr(0) || b)).
    b the input to the leaf hash
    Return the leaf hash.
    """
    return hashlib.sha256(chr(0) + b).digest()