pub fn starting_bit(num_leaves: u64) -> u64 
Expand description

Calculates the starting bit of the path to a leaf

Additional Information

WARNING: This function will be private when https://github.com/FuelLabs/sway/issues/5765 is resolved.

Arguments

  • num_leaves: [u64] - The number of leaves in the Merkle Tree.

Returns

  • [u64] - The starting bit.