Skip to content

Commit f9291d4

Browse files
committed
tmp
1 parent 807f779 commit f9291d4

File tree

2 files changed

+3
-28
lines changed

2 files changed

+3
-28
lines changed

ledger/src/proofs/accumulator_check.rs

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,41 +7,16 @@ use poly_commitment::{commitment::CommitmentCurve, srs::SRS};
77
use super::public_input::scalar_challenge::ScalarChallenge;
88
use 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-
3710
pub 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![];

node/src/ledger/ledger_service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ impl LedgerCtx {
675675
let result = staged_ledger
676676
.apply(
677677
// TODO(binier): SEC
678-
None, // Some(SkipVerification::All),
678+
Some(SkipVerification::All),
679679
constraint_constants(),
680680
Slot::from_u32(global_slot),
681681
diff,

0 commit comments

Comments
 (0)