@Override
  public Optional<V> get(final K key) {
    checkNotNull(key);
    return root.accept(getGetVisitor(), bytesToPath(key)).getValue();
  }
Create a trie.

@param nodeFactory The {@link StoredNodeFactory} to retrieve node.
@param rootHash The initial root hash for the trie, which should be already present in {@code
    storage}.
ethereum/trie/src/main/java/org/hyperledger/besu/ethereum/trie/StoredMerkleTrie.java