The function merkleize(value)
builds a Merkle Tree
and returns the Bytes32
Hash Tree Root
merkleize(value)
provides hash_tree_root
forBasic types
i.e. unsigned integers
of N bytes
, known as uintN
s, as well as Booleans
List
and vectors
of bits
, known as BitLists
and BitVectors
Lists
and vectors
of Serializable
i.e. either basic or composite typesContainers
with Serializable
fieldsUnions
hash_tree_root
a number of helper functions are required, includingsize_of
chunk_count
pack
pack_bits
next_pow_of_two
merkleize
mix_in_length
mix_in_type