Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

create_script_path_output

Generate a script-path Taproot output

Arguments

  • internal_key - The internal public key
  • script_tree - The script tree

Returns

  • Option<TweakedPublicKey> - The tweaked key for script-path spending

Fully qualified path: alexandria_btc::taproot::create_script_path_output

pub fn create_script_path_output(
    internal_key: u256, script_tree: @TapTree,
) -> Option<TweakedPublicKey>