Module merkle_accumulator

Module merkle_accumulator 

Source

Structs§

InMemoryMerkleAccumulator
In-memory (non-persistent) Merkle accumulator for export/import and testing.
MerkleAccumulator
Storage-backed Merkle accumulator.
MerkleTreeNodeEvent
Event emitted when a Merkle tree node is updated during append.

Functions§

calc_num_partials
Returns the number of partial tree hashes needed for a given size. This is the bit-length of size (i.e. floor(log2(size)) + 1).
initialize_merkle_accumulator
open_merkle_accumulator