.add_leaf(0, reveal_script.clone()) .expect("adding leaf should work") .finalize(&secp256k1, public_key) .expect("finalizing taproot builder should work"); let control_block = taproot_spend_info .control_block(&(reveal_script.clone(), LeafVersion::TapScript)) .expect("should compute control block"); let commit_tx_address = Address::p2tr_tweaked(taproot_spend_info.output_key(), chain.network()); let total_postage = self.postage * u64::try_from(self.inscriptions.len()).unwrap(); let mut reveal_inputs = vec![OutPoint::null()]; let mut reveal_outputs = self .destinations .iter() .map(|destination| TxOut { script_pubkey: destination.script_pubkey(), value: match self.mode { Mode::SeparateOutputs => self.postage.to_sat(), Mode::SharedOutput => total_postage.to_sat(), }, }) .collect::>(); if let Some(ParentInfo { location, id: _, destination, tx_out,