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

CompactArray

Compact array.

CompactVec

Vec value with maximum length.

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.

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.

FromCompactListTree

Traits for list converting from a tree structure.

FromCompactVectorTree

Traits for vector converting from a compact tree structure.

FromCompositeListTree

Traits for list converting from a tree structure.

FromCompositeVectorTree

Traits for vector converting from a composite tree structure.

FromTree

Traits for type converting from a tree structure.

IntoCompactListTree

Traits for list converting into a tree structure.

IntoCompactVectorTree

Traits for vector converting into a compact tree structure.

IntoCompositeListTree

Traits for list converting into a tree structure.

IntoCompositeVectorTree

Traits for vector converting into a composite tree structure.

IntoTree

Traits for type 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.