(
&mut self,
peg_out_graph_id: &String,
proof: &RawProof,
)
| 1183 | } |
| 1184 | |
| 1185 | pub async fn broadcast_assert_commit_2( |
| 1186 | &mut self, |
| 1187 | peg_out_graph_id: &String, |
| 1188 | proof: &RawProof, |
| 1189 | ) -> Result<Txid, Error> { |
| 1190 | let graph = Self::find_peg_out_or_fail(&mut self.data, peg_out_graph_id)?; |
| 1191 | let tx = graph |
| 1192 | .assert_commit_2( |
| 1193 | &self.esplora, |
| 1194 | &self.private_data.commitment_secrets |
| 1195 | [&self.operator_context.as_ref().unwrap().operator_public_key] |
| 1196 | [peg_out_graph_id], |
| 1197 | proof, |
| 1198 | ) |
| 1199 | .await?; |
| 1200 | self.broadcast_tx(&tx).await |
| 1201 | } |
| 1202 | |
| 1203 | // use this when possible |
| 1204 | // broadcast assert commits together to save groth16 verifying time |
no test coverage detected