Skip to content

Commit b6f5920

Browse files
committed
code cleanup
1 parent e0cdd2b commit b6f5920

File tree

6 files changed

+0
-20
lines changed

6 files changed

+0
-20
lines changed

ff_ext/Cargo.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,3 @@ version.workspace = true
1313
p3 = { path = "../p3" }
1414
rand_core.workspace = true
1515
serde.workspace = true
16-
17-
[features]
18-
default = ["babybear"]
19-
babybear = []
20-
goldilocks = []

ff_ext/src/babybear.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ pub mod impl_babybear {
9292
}
9393

9494
impl PoseidonField for BabyBear {
95-
const PERM_WIDTH: usize = POSEIDON2_BABYBEAR_WIDTH;
96-
const RATE: usize = POSEIDON2_BABYBEAR_RATE;
9795
type P = Poseidon2BabyBear<POSEIDON2_BABYBEAR_WIDTH>;
9896
type T = DuplexChallenger<Self, Self::P, POSEIDON2_BABYBEAR_WIDTH, POSEIDON2_BABYBEAR_RATE>;
9997
fn get_perm() -> Self::T {

ff_ext/src/goldilock.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ pub mod impl_goldilocks {
4343
pub const POSEIDON2_GOLDILICK_RATE: usize = 4;
4444

4545
impl PoseidonField for Goldilocks {
46-
const PERM_WIDTH: usize = POSEIDON2_GOLDILICK_WIDTH;
47-
const RATE: usize = POSEIDON2_GOLDILICK_RATE;
4846
type P = Poseidon2GoldilocksHL<POSEIDON2_GOLDILICK_WIDTH>;
4947
type T =
5048
DuplexChallenger<Self, Self::P, POSEIDON2_GOLDILICK_WIDTH, POSEIDON2_GOLDILICK_RATE>;

ff_ext/src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,3 @@ pub trait ExtensionField: P3ExtensionField<Self::BaseField> + FromUniformBytes +
121121
/// Convert a field elements to a u64 vector
122122
fn to_canonical_u64_vec(&self) -> Vec<u64>;
123123
}
124-
125-
// #[cfg(not(feature = "babybear"))]
126-
// pub trait ExtensionField: ExtensionFieldInner<8> {}
127-
128-
// #[cfg(feature = "babybear")]
129-
// pub trait ExtensionField: ExtensionFieldInner<16> {}

ff_ext/src/poseidon.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ pub trait FieldChallengerExt<F: PoseidonField>: FieldChallenger<F> {
1414
}
1515

1616
pub trait PoseidonField: PrimeField + SmallField {
17-
const PERM_WIDTH: usize;
18-
const RATE: usize;
1917
type P: Clone;
2018
type T: FieldChallenger<Self> + Clone;
2119
fn get_perm() -> Self::T;

mpcs/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#![deny(clippy::cargo)]
2-
32
use ff_ext::ExtensionField;
43
use itertools::Itertools;
54
use multilinear_extensions::mle::DenseMultilinearExtension;
@@ -394,8 +393,6 @@ pub mod test_util {
394393
#[cfg(test)]
395394
use witness::RowMajorMatrix;
396395

397-
398-
399396
pub fn setup_pcs<E: ExtensionField, Pcs: PolynomialCommitmentScheme<E>>(
400397
num_vars: usize,
401398
) -> (Pcs::ProverParam, Pcs::VerifierParam) {

0 commit comments

Comments
 (0)