merkle-trie / net.consensys.cava.trie.experimental / MerklePatriciaTrie / <init>

<init>

MerklePatriciaTrie(valueSerializer: Function<V, Bytes>)

Creates an empty trie.

Parameters

valueSerializer - A function for serializing values to bytes.

MerklePatriciaTrie(valueSerializer: (V) -> Bytes)

Creates an empty trie.

Constructor
Creates an empty trie.