[][src]Module merkletree::merkle

Merkle tree abstractions, implementation and algorithms.

Structs

DiskMmapStore

File-mapping version of MmapStore with the added new_with_path method that allows to set its path (otherwise a temporary file is used which is cleaned up after we drop this structure).

MerkleTree

Merkle Tree.

MmapStore
VecStore

Traits

Element

Element stored in the merkle tree.

Store

Backing store of the merkle tree.

Functions

log2_pow2

find power of 2 of a number which is power of 2

next_pow2

next_pow2 returns next highest power of two from a given number if it is not already a power of two.