Skip to content

Commit 96931fa

Browse files
committed
simplify (remove PCS trait)
1 parent 14be712 commit 96931fa

File tree

23 files changed

+130
-261
lines changed

23 files changed

+130
-261
lines changed

Cargo.lock

Lines changed: 15 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ sumcheck = { path = "crates/sumcheck" }
4545
utils = { path = "crates/utils" }
4646
lean_vm = { path = "crates/lean_vm" }
4747
xmss = { path = "crates/xmss" }
48-
pcs = { path = "crates/pcs" }
48+
packed_pcs = { path = "crates/packed_pcs" }
4949
lookup = { path = "crates/lookup" }
5050
lean_compiler = { path = "crates/lean_compiler" }
5151
lean_prover = { path = "crates/lean_prover" }
@@ -96,5 +96,5 @@ whir-p3.workspace = true
9696
p3-uni-stark.workspace = true
9797
utils.workspace = true
9898
p3-util.workspace = true
99-
pcs.workspace = true
99+
packed_pcs.workspace = true
100100
p3-air.workspace = true

crates/air/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ p3-air.workspace = true
1818
p3-uni-stark.workspace = true
1919
# p3-challenger.workspace = true
2020
p3-matrix.workspace = true
21-
# pcs.workspace = true
2221
p3-util.workspace = true
2322

2423
[dev-dependencies]

crates/lean_compiler/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ whir-p3.workspace = true
2424
rayon.workspace = true
2525
tracing.workspace = true
2626
air.workspace = true
27-
pcs.workspace = true
27+
packed_pcs.workspace = true
2828
p3-poseidon2-air.workspace = true
2929
lookup.workspace = true
3030
sumcheck.workspace = true

crates/lean_prover/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ whir-p3.workspace = true
2424
rayon.workspace = true
2525
tracing.workspace = true
2626
air.workspace = true
27-
pcs.workspace = true
27+
packed_pcs.workspace = true
2828
p3-poseidon2-air.workspace = true
2929
lookup.workspace = true
3030
sumcheck.workspace = true

crates/lean_prover/src/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use p3_air::BaseAir;
22
use p3_field::{ExtensionField, PrimeCharacteristicRing};
3-
use pcs::ColDims;
3+
use packed_pcs::ColDims;
44
use rayon::prelude::*;
55
use std::ops::Range;
66
use sumcheck::{SumcheckComputation, SumcheckComputationPacked};

crates/lean_prover/src/prove_execution.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ use p3_field::BasedVectorSpace;
99
use p3_field::ExtensionField;
1010
use p3_field::PrimeCharacteristicRing;
1111
use p3_util::{log2_ceil_usize, log2_strict_usize};
12-
use pcs::{ColDims, num_packed_vars_for_dims};
13-
use pcs::{packed_pcs_commit, packed_pcs_global_statements_for_prover};
12+
use packed_pcs::*;
1413
use rayon::prelude::*;
1514
use std::collections::BTreeMap;
1615
use sumcheck::MleGroupRef;
@@ -1353,10 +1352,10 @@ pub fn prove_execution(
13531352
&mut prover_state,
13541353
);
13551354

1356-
whir_p3::whir::prover::Prover(&WhirConfig::new(
1355+
WhirConfig::new(
13571356
whir_config_builder,
13581357
log2_strict_usize(packed_pcs_witness_base.packed_polynomial.len()),
1359-
))
1358+
)
13601359
.batch_prove(
13611360
&dft,
13621361
&mut prover_state,

crates/lean_prover/src/verify_execution.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@ use p3_field::BasedVectorSpace;
99
use p3_field::PrimeCharacteristicRing;
1010
use p3_field::dot_product;
1111
use p3_util::{log2_ceil_usize, log2_strict_usize};
12-
use pcs::ColDims;
13-
use pcs::num_packed_vars_for_dims;
14-
use pcs::packed_pcs_global_statements_for_verifier;
15-
use pcs::packed_pcs_parse_commitment;
12+
use packed_pcs::*;
1613
use sumcheck::SumcheckComputation;
1714
use utils::dot_product_with_base;
1815
use utils::{PF, build_challenger, padd_with_zero_to_next_power_of_two};
@@ -1009,11 +1006,7 @@ pub fn verify_execution(
10091006
&Default::default(),
10101007
)?;
10111008

1012-
whir_p3::whir::verifier::Verifier(&WhirConfig::new(
1013-
whir_config_builder,
1014-
parsed_commitment_base.num_variables,
1015-
))
1016-
.batch_verify(
1009+
WhirConfig::new(whir_config_builder, parsed_commitment_base.num_variables).batch_verify(
10171010
&mut verifier_state,
10181011
&parsed_commitment_base,
10191012
global_statements_base,

crates/lean_prover/vm_air/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ whir-p3.workspace = true
2424
rayon.workspace = true
2525
tracing.workspace = true
2626
air.workspace = true
27-
pcs.workspace = true
27+
packed_pcs.workspace = true
2828
p3-poseidon2-air.workspace = true
2929
lookup.workspace = true
3030
sumcheck.workspace = true

crates/lean_prover/witness_generation/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ whir-p3.workspace = true
2424
rayon.workspace = true
2525
tracing.workspace = true
2626
air.workspace = true
27-
pcs.workspace = true
27+
packed_pcs.workspace = true
2828
p3-poseidon2-air.workspace = true
2929
lookup.workspace = true
3030
sumcheck.workspace = true

0 commit comments

Comments
 (0)