Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

calculate_merkle_root

Calculate the Merkle root of a script tree

Arguments

  • tree - The script tree

Returns

  • Option<u256> - The Merkle root if tree has scripts, None for key-path only

Fully qualified path: alexandria_btc::taproot::calculate_merkle_root

pub fn calculate_merkle_root(tree: @TapTree) -> Option<u256>