@@ -7,41 +7,16 @@ use poly_commitment::{commitment::CommitmentCurve, srs::SRS};
77use  super :: public_input:: scalar_challenge:: ScalarChallenge ; 
88use  super :: urs_utils; 
99
10- /* 
11-   let%bind accumulator_check = 
12-     Ipa.Step.accumulator_check 
13-       (List.map ts ~f:(fun (T (_, _, _, _, _, T t)) -> 
14-            ( t.statement.proof_state.messages_for_next_wrap_proof 
15-                .challenge_polynomial_commitment 
16-            , Ipa.Step.compute_challenges 
17-                t.statement.proof_state.deferred_values.bulletproof_challenges ) ) 
18-       ) 
19- 
20- 
21-   let accumulator_check comm_chals = 
22-       let chals = 
23-         Array.concat 
24-         @@ List.map comm_chals ~f:(fun (_, chals) -> Vector.to_array chals) 
25-       in 
26-       let comms = 
27-         Array.of_list_map comm_chals ~f:(fun (comm, _) -> 
28-             Or_infinity.Finite comm ) 
29-       in 
30-       let urs = Backend.Tick.Keypair.load_urs () in 
31-       Promise.run_in_thread (fun () -> 
32-           Kimchi_bindings.Protocol.SRS.Fp.batch_accumulator_check urs 
33-             (Array.map comms ~f:or_infinite_conv) 
34-             chals ) 
35- */ 
36- 
3710pub  fn  accumulator_check ( 
3811    urs :  & SRS < Vesta > , 
3912    proofs :  & [ & PicklesProofProofsVerified2ReprStableV2 ] , 
4013)  -> Result < bool ,  InvalidBigInt >  { 
4114    // accumulator check 
4215    // Note: 
4316    // comms: statement.proof_state.messages_for_next_wrap_proof.challenge_polynomial_commitment 
17+     //        Array.of_list_map comm_chals ~f:(fun (comm, _) -> Or_infinity.Finite comm ) 
4418    // chals: statement.proof_state.deferred_values.bulletproof_challenges 
19+     //        Array.concat @@ List.map comm_chals ~f:(fun (_, chals) -> Vector.to_array chals) 
4520
4621    let  mut  comms = Vec :: with_capacity ( proofs. len ( ) ) ; 
4722    let  mut  bulletproof_challenges = vec ! [ ] ; 
0 commit comments