MCPcopy Index your code
hub / github.com/BitVM/BitVM / invalidate_proof

Function invalidate_proof

bridge/src/proof.rs:38–44  ·  view source on GitHub ↗

DO NOT USE IN PRODUCTION! This is a test function.

(valid_proof: &RawProof)

Source from the content-addressed store, hash-verified

36
37// DO NOT USE IN PRODUCTION! This is a test function.
38pub fn invalidate_proof(valid_proof: &RawProof) -> RawProof {
39 let mut invalid_proof = valid_proof.clone();
40 let mut rng = ark_std::rand::rngs::StdRng::seed_from_u64(test_rng().next_u64());
41 invalid_proof.proof.a = G1Affine::rand(&mut rng);
42
43 invalid_proof
44}
45
46// TODO: Consider importing `gen_correct_proof` fn from bitvm/src/chunker/disprove_execution.rs
47// It requires refactoring bitvm crate

Callers 1

Calls 1

cloneMethod · 0.80

Tested by

no test coverage detected