jam.state.merkle.trie module

class jam.state.merkle.trie.MerkleTrie(hash_function: ~jam.types.protocol.crypto.Hash = <function Hash.blake2b>)[source]

Bases: object

Binary Merkle Trie implementation as defined in D.2

This implements the basic Merklization function M΃ which transforms a serialized state mapping into a cryptographic commitment.

__init__(hash_function: ~jam.types.protocol.crypto.Hash = <function Hash.blake2b>)[source]

Initialize an empty Merkle trie with optional hash function