[][src]Crate bm_le

SimpleSerialize (ssz) compliant binary merkle tree supporting both merkleization and de-merkleization.

Re-exports

pub use bm_le_derive::FromTree;
pub use bm_le_derive::IntoTree;

Modules

utils

Utilities

Macros

impl_from_list_tree_with_empty_config

Implement FromListTreeWithConfig for traits that has already implemented FromListTree and does not need extra configs.

impl_from_tree_with_empty_config

Implement FromTreeWithConfig for traits that has already implemented FromTree and does not need extra configs.

impl_from_vector_tree_with_empty_config

Implement FromVectorTreeWithConfig for traits that has already implemented FromVectorTree and does not need extra configs.

Structs

End

End value for 256-bit ssz binary merkle tree.

FixedVec

Fixed Vec value. In ssz's definition, this is a "vector".

FixedVecRef

Fixed Vec reference. In ssz's definition, this is a "vector".

List

Binary merkle vector.

VariableVec

Variable Vec value. In ssz's definition, this is a "list".

VariableVecRef

Variable Vec reference. In ssz's definition, this is a "list".

Vector

Binary merkle tuple.

Enums

Error

Set error.

Value

Value in a merkle tree.

Traits

Backend

Traits for a merkle database.

Composite

A composite value, in contrary to ssz's definition of basic value.

FromListTree

Traits for list converting from a tree structure.

FromListTreeWithConfig

Traits for list converting from a tree structure with config.

FromTree

Traits for type converting from a tree structure.

FromTreeWithConfig

Traits for type converting from a tree structure with a config.

FromVectorTree

Traits for vector converting from a tree structure.

FromVectorTreeWithConfig

Traits for vector converting from a tree structure with config.

IntoTree

Traits for type converting into a tree structure.

IntoVectorTree

Traits for vector converting into a tree structure.

Leak

Leakable value, whose default behavior of drop is to leak.

Functions

tree_root

Calculate a ssz merkle tree root, dismissing the tree.

Type Definitions

DanglingVector

Vector with dangling root.

Intermediate

Intermediate type for 256-bit ssz binary merkle tree.

ValueOf

Value of a database.