[][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

ElementalFixedVec

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

ElementalFixedVecRef

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

ElementalVariableVec

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

ElementalVariableVecRef

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

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".

InMemoryBackend

In-memory merkle database.

List

Binary merkle vector.

NoMaxLen

Indicate a type that does not have maximum length.

NoopBackend

Noop merkle database.

VariableVec

Variable Vec value.

VariableVecRef

Variable Vec reference.

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.

DefaultWithConfig

Traits for getting default value from a config.

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.

IntoListTree

Traits for list converting into a tree structure.

IntoTree

Traits for type converting into a tree structure.

IntoVectorTree

Traits for vector converting into a tree structure.

KnownLen

Trait indicate LenFromConfig has a known maximum length.

KnownMaxLen

Trait indicate MaxLenFromConfig has a known maximum length.

Leak

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

LenFromConfig

Traits for getting the length from config.

MaxLenFromConfig

Traits for getting the maximum length from config.

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.