Module mrkl::leaf[][src]

Facilities for extracting leaf data.

Merkle trees are not generally used to own the data they provide hashing for, but information derived from input may need to be associated with leaf nodes. The trait ExtractData and its implementations provide versatile ways of retrieving leaf node data.

Structs

ExtractFn

An adapter structure used to fit closures to extract leaf node data.

NoData

Used to build a no-data Merkle tree.

Owned

Used to build a Merkle tree owning its input data.

Traits

ExtractData

A way to extract data for leaf nodes of a Merkle tree.

Functions

extract_with

A helper function to create function-based leaf data extractors.

no_data

A helper function to create instances of NoData with a more concise syntax.

owned

A helper function to create instances of Owned with a more concise syntax.