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

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.

InMemoryBackend

In-memory merkle database.

List

Binary merkle vector.

MaxVec

Vec value with maximum length.

MaxVecRef

Vec reference with maximum length.

NoopBackend

Noop merkle database.

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.

FromTree

Traits for type converting from a tree structure.

FromVectorTree

Traits for vector converting from a tree structure.

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.

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.