(valid_proof: &RawProof)
| 310 | } |
| 311 | |
| 312 | pub fn invalidate_proof(valid_proof: &RawProof) -> RawProof { |
| 313 | let mut invalid_proof = valid_proof.clone(); |
| 314 | let mut rng = ark_std::rand::rngs::StdRng::seed_from_u64(test_rng().next_u64()); |
| 315 | invalid_proof.proof.a = G1Affine::rand(&mut rng); |
| 316 | |
| 317 | invalid_proof |
| 318 | } |
| 319 | |
| 320 | pub fn print_tx_broadcasted(tx_name: &str, txid: Txid) { |
| 321 | println!("Broadcasted {} with txid: {txid}", tx_name.bold().green(),); |