tuweni / org.apache.tuweni.trie

Package org.apache.tuweni.trie

Merkle Trie implementations.

Implementations of the Ethereum Patricia Trie, as described at https://github.com/ethereum/wiki/wiki/Patricia-Tree.

These classes are included in the complete Tuweni distribution, or separately when using the gradle dependency org.apache.tuweni:tuweni-merkle-trie (tuweni-merkle-trie.jar).

Merkle Trie implementations using Kotlin coroutines.

Types

AsyncMerkleStorage

abstract class AsyncMerkleStorage : MerkleStorage

A MerkleStorage implementation using AsyncResult's.

CompactEncoding

class CompactEncoding

Compact (Hex-prefix) encoding and decoding.

An implementation of Compact (Hex-prefix) encoding.

MerklePatriciaTrie

class MerklePatriciaTrie<V> : MerkleTrie<Bytes, V>

An in-memory MerkleTrie.

MerkleStorage

interface MerkleStorage

Storage for use in a StoredMerklePatriciaTrie.

MerkleTrie

interface MerkleTrie<in K, V>

A Merkle Trie.

StoredMerklePatriciaTrie

class StoredMerklePatriciaTrie<V> : MerkleTrie<Bytes, V>

A MerkleTrie that persists trie nodes to a MerkleStorage key/value store.

Exceptions

MerkleStorageException

class MerkleStorageException : RuntimeException

This exception is thrown when there is an issue retrieving or decoding values from MerkleStorage.