Creates the witness stack for Taproot script-path spending. This function handles the complex process of: 1. Computing the signature hash for script-path spending 2. Signing with the appropriate private key 3. Constructing the witness stack in the correct order The witness stack must be ordered correctly for script validation: - Signature (top of stack, consumed by OP_CHECKSIG) - Script (the cod
(
ctx: &BitcoinContext,
reveal_transaction: &mut Transaction,
commit_output: &TxOut,
reveal_script: &ScriptBuf,
control_block: &ControlBlock,
internal_key_path: Vec<Vec<u8>>,
)
source not stored for this graph (policy: none)
no test coverage detected