Module tree

Source
Expand description

Implementation of functionality related to the tree.

Structsยง

BlockHasher
Incremental hasher for a single block, this can only be used to hash only one block.
HashTree
The hash tree generated using a HashTreeBuilder.
HashTreeBuilder
An incremental Blake3 hasher that also maintains an array representation of the full Blake3 tree, the generated array will be in the same stack ordering as Blake3.
IV
Initialization vector for a Blake3 hasher, if BlockHasher::new() or HashTreeBuilder::new() are not sufficient for you and you need more customization on the IV, such as keyed hash function, you can achieve it by constructing the IV first using a method like IV::new_keyed and convert it to either of these by simply using the Into trait.