[][src]Function solana_libra_types::proof::treebits::sibling

pub fn sibling(node: u64) -> u64

This method takes in a node position and return its sibling position

The observation is that, after stripping out the right-most common bits, two sibling nodes flip the the next right-most bits with each other. To find out the right-most common bits, first remove all the right-most ones because they are corresponding to level's indicator. Then remove next zero right after.