| 1233 | } |
| 1234 | |
| 1235 | pub async fn broadcast_disprove( |
| 1236 | &mut self, |
| 1237 | peg_out_graph_id: &String, |
| 1238 | output_script_pubkey: ScriptBuf, |
| 1239 | ) -> Result<Txid, Error> { |
| 1240 | let graph = Self::find_peg_out_or_fail(&mut self.data, peg_out_graph_id)?; |
| 1241 | let tx = graph |
| 1242 | .disprove( |
| 1243 | &self.esplora, |
| 1244 | output_script_pubkey, |
| 1245 | self.zkproof_verifying_key |
| 1246 | .as_ref() |
| 1247 | .ok_or(Error::Client(ClientError::ZkProofVerifyingKeyNotDefined))?, |
| 1248 | ) |
| 1249 | .await?; |
| 1250 | self.broadcast_tx(&tx).await |
| 1251 | } |
| 1252 | |
| 1253 | pub async fn broadcast_disprove_chain( |
| 1254 | &mut self, |