1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#![warn(missing_docs)]
#![cfg_attr(not(feature = "std"), no_std)]

//! Binary merkle tree implementation.

extern crate alloc;

mod traits;
mod memory;
mod raw;
mod index;
mod vector;
mod list;
mod packed;
mod length;
mod proving;

pub mod utils;

pub use crate::traits::{Backend, ReadBackend, WriteBackend, Construct, Dangling, Owned, RootStatus, Error, Sequence, Tree, Leak, DynBackend};
pub use crate::memory::{EmptyStatus, UnitEmpty, InheritedEmpty, UnitDigestConstruct, InheritedDigestConstruct, InMemoryBackend, InMemoryBackendError, NoopBackend, NoopBackendError};
pub use crate::raw::{Raw, OwnedRaw, DanglingRaw};
pub use crate::index::{Index, IndexSelection, IndexRoute};
pub use crate::vector::{Vector, OwnedVector, DanglingVector};
pub use crate::list::{List, OwnedList, DanglingList};
pub use crate::packed::{PackedVector, OwnedPackedVector, DanglingPackedVector,
                        PackedList, OwnedPackedList, DanglingPackedList};
pub use crate::length::LengthMixed;
pub use crate::proving::{ProvingBackend, ProvingState, Proofs, CompactValue};