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
32
33
34
#![cfg_attr(not(feature = "std"), no_std)]
#[cfg(feature = "blake2b")]
pub mod blake2b;
pub mod default_store;
pub mod error;
pub mod h256;
pub mod merge;
pub mod merkle_proof;
#[cfg(test)]
mod tests;
pub mod traits;
pub mod tree;
pub use h256::H256;
pub use merkle_proof::{CompiledMerkleProof, MerkleProof};
pub use tree::SparseMerkleTree;
pub const EXPECTED_PATH_SIZE: usize = 16;
pub const TREE_HEIGHT: usize = 256;
cfg_if::cfg_if! {
if #[cfg(feature = "std")] {
use std::collections;
use std::vec;
use std::string;
} else {
extern crate alloc;
use alloc::collections;
use alloc::vec;
use alloc::string;
}
}