> Aztec.nr API reference, v6.0.0 (mainnet and testnet). Index: https://docs.aztec.network/aztec-nr-api/v6.0.0/llms.txt

# Function root_from_sibling_path

Module: `noir_aztec::protocol::merkle_tree::root`

```rust
pub fn root_from_sibling_path<let N: u32>(
    leaf: Field,
    leaf_index: Field,
    sibling_path: [Field; N],
) -> Field
```

Calculate the Merkle tree root from the sibling path and leaf, using the default merkle hash.
