merkle_cbt/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![cfg_attr(not(feature = "std"), no_std)]

pub mod merkle_tree;

pub use crate::merkle_tree::{MerkleProof, MerkleTree, CBMT};

cfg_if::cfg_if! {
    if #[cfg(feature = "std")] {
        use std::collections;
        use std::vec;
    } else {
        extern crate alloc;
        use alloc::collections;
        use alloc::vec;
    }
}