MCPcopy Create free account
hub / github.com/BitVM/BitVM / broadcast_disprove

Method broadcast_disprove

bridge/src/client/client.rs:1235–1251  ·  view source on GitHub ↗
(
        &mut self,
        peg_out_graph_id: &String,
        output_script_pubkey: ScriptBuf,
    )

Source from the content-addressed store, hash-verified

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,

Calls 3

disproveMethod · 0.80
as_refMethod · 0.80
broadcast_txMethod · 0.80