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

Function invalidate_proof

bridge/tests/bridge/helper.rs:312–318  ·  view source on GitHub ↗
(valid_proof: &RawProof)

Source from the content-addressed store, hash-verified

310}
311
312pub 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
320pub fn print_tx_broadcasted(tx_name: &str, txid: Txid) {
321 println!("Broadcasted {} with txid: {txid}", tx_name.bold().green(),);

Callers 1

setup_testFunction · 0.70

Calls 1

cloneMethod · 0.80

Tested by

no test coverage detected