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
30
31
#![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;
#[cfg(feature = "std")]
mod proving;

pub mod utils;

pub use crate::traits::{Backend, Value, ValueOf, IntermediateOf, EndOf, Dangling, Owned, RootStatus, Error, Sequence, Tree, Leak};
pub use crate::memory::{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;
#[cfg(feature = "std")]
pub use crate::proving::ProvingBackend;