ckb_types::utilities
pub fn target_to_compact(target: U256) -> u32
Converts PoW target into compact format of difficulty.