clementine_core::builder::address

Function calculate_taproot_leaf_depths

Source
pub fn calculate_taproot_leaf_depths(num_scripts: usize) -> Vec<u8> 
Expand description

Calculates the depth of each leaf in a balanced Taproot tree structure. The returned Vec contains the depth for each script at the corresponding index.