Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

create_script_tree

Create a Taproot script tree from a single script

Arguments

  • script - The script bytes
  • leaf_version - The script version (usually 0xc0)

Returns

  • TapTree - The script tree

Fully qualified path: alexandria_btc::taproot::create_script_tree

pub fn create_script_tree(script: Array<u8>, leaf_version: u8) -> TapTree