[][src]Module merkletree::store

Store implementations.

Structs

DiskIter
DiskStore

The Disk-only store is used to reduce memory to the minimum at the cost of build time performance. Most of its I/O logic is in the store_copy_from_slice and store_read_range functions.

DiskStoreProducer
LevelCacheIter
LevelCacheStore

The LevelCacheStore is used to reduce the on-disk footprint even further to the minimum at the cost of build time performance. Each LevelCacheStore is created with a StoreConfig object which contains the number of binary tree levels above the base that are 'cached'. This implementation has hard requirements about the on disk file size based on that number of levels, so on-disk files are tied, structurally to the configuration they were built with and can only be accessed with the same number of levels.

LevelCacheStoreProducer
StoreConfig
VecStore
VecStoreIter
VecStoreProducer

Constants

DEFAULT_CACHED_ABOVE_BASE_LAYER

Traits

Store

Backing store of the merkle tree.