Skip to main content

nonced_block_siblings

Function nonced_block_siblings 

Source
pub fn nonced_block_siblings(
    nonce: &[u8; 32],
    peer: &[u8; 32],
    key: &XorName,
    content: &[u8],
    index: u32,
) -> Option<Vec<[u8; 32]>>
Expand description

Sibling hashes on the path from block index up to the nonced root, bottom-up (leaf level first). None if index is out of range for the tree.

The verifier folds the recomputed leaf with these siblings using node-index parity, so the sibling ordering is positional, not left/right-tagged.