ckb_types/utilities/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Types utilities.
mod block_filter;
mod difficulty;
pub mod merkle_mountain_range;
mod merkle_tree;

#[cfg(test)]
mod tests;

pub use block_filter::{build_filter_data, calc_filter_hash, FilterDataProvider};
pub use difficulty::{
    compact_to_difficulty, compact_to_target, difficulty_to_compact, target_to_compact, DIFF_TWO,
};
pub use merkle_tree::{merkle_root, MergeByte32, MerkleProof, CBMT};