tree: 2e565e3f800e7a15fafe2e3377afb2a4db6c9184 [path history] [tgz]
  1. src/
  2. build.gradle
  3. README.md
merkle-trie/README.md

Patricia Merkle Trie

Status
Stabilitystable
Component Typelibrary

This library introduces a Patricia Merkle tree implementation.

It can be backed in memory or using a key-value store.

The library offers a few methods to define a trie in memory quickly:

The same approach works with a stored trie:

You will need to provide a storage in this case, which you will define by implementing MerkleStorage.

Note in Java, you should use AsyncMerkleStorage instead to avoid dealing with coroutines.

An easy way to provide storage is to rely on a key-value store as defined in the kv library.