pub fn create_disprove_taproot_output(
operator_timeout_script: Arc<dyn SpendableScript>,
additional_script: ScriptBuf,
disprove_path: DisprovePath<'_>,
amount: Amount,
network: Network,
) -> UnspentTxOut
Expand description
Creates a Taproot output for a disprove path, combining a script, an additional disprove script, and a hidden node containing the BitVM disprove scripts.
§Arguments
operator_timeout_script
- The operator timeout script.additional_script
- An additional script to include in the Taproot tree. This single additional script is generated by Clementine bridge in addition to the disprove scripts coming from BitVM side.disprove_root_hash
- The root hash for the hidden script merkle tree node. The scripts included in the root hash are the BitVM disprove scripts.amount
- The output amount.network
- The Bitcoin network.
§Returns
An UnspentTxOut
representing the Taproot TxOut.