Skip to content

Commit d1fbcf6

Browse files
committed
merge with master
2 parents b6f5920 + fd571cf commit d1fbcf6

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ itertools = "0.13"
3737
num-bigint = { version = "0.4.6" }
3838
num-derive = "0.4"
3939
num-traits = "0.2"
40+
p3-baby-bear = { git = "https://github.com/scroll-tech/plonky3", rev = "8d2be81" }
4041
p3-challenger = { git = "https://github.com/scroll-tech/plonky3", rev = "8d2be81" }
4142
p3-field = { git = "https://github.com/scroll-tech/plonky3", rev = "8d2be81" }
4243
p3-goldilocks = { git = "https://github.com/scroll-tech/plonky3", rev = "8d2be81" }
@@ -46,7 +47,6 @@ p3-mds = { git = "https://github.com/scroll-tech/plonky3", rev = "8d2be81" }
4647
p3-poseidon = { git = "https://github.com/scroll-tech/plonky3", rev = "8d2be81" }
4748
p3-poseidon2 = { git = "https://github.com/scroll-tech/plonky3", rev = "8d2be81" }
4849
p3-symmetric = { git = "https://github.com/scroll-tech/plonky3", rev = "8d2be81" }
49-
p3-baby-bear = { git = "https://github.com/scroll-tech/plonky3", rev = "8d2be81" }
5050
paste = "1"
5151
plonky2 = "0.2"
5252
poseidon = { path = "./poseidon" }

ff_ext/src/babybear.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ pub mod impl_babybear {
9494
impl PoseidonField for BabyBear {
9595
type P = Poseidon2BabyBear<POSEIDON2_BABYBEAR_WIDTH>;
9696
type T = DuplexChallenger<Self, Self::P, POSEIDON2_BABYBEAR_WIDTH, POSEIDON2_BABYBEAR_RATE>;
97-
fn get_perm() -> Self::T {
97+
fn get_default_challenger() -> Self::T {
9898
let p = Poseidon2BabyBear::new(
9999
ExternalLayerConstants::new(
100100
BABYBEAR_RC16_EXTERNAL_INITIAL.to_vec(),

ff_ext/src/goldilock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub mod impl_goldilocks {
4646
type P = Poseidon2GoldilocksHL<POSEIDON2_GOLDILICK_WIDTH>;
4747
type T =
4848
DuplexChallenger<Self, Self::P, POSEIDON2_GOLDILICK_WIDTH, POSEIDON2_GOLDILICK_RATE>;
49-
fn get_perm() -> Self::T {
49+
fn get_default_challenger() -> Self::T {
5050
let perm = Poseidon2GoldilocksHL::new(
5151
ExternalLayerConstants::<Goldilocks, POSEIDON2_GOLDILICK_WIDTH>::new_from_saved_array(
5252
HL_GOLDILOCKS_8_EXTERNAL_ROUND_CONSTANTS,

ff_ext/src/poseidon.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub trait FieldChallengerExt<F: PoseidonField>: FieldChallenger<F> {
1616
pub trait PoseidonField: PrimeField + SmallField {
1717
type P: Clone;
1818
type T: FieldChallenger<Self> + Clone;
19-
fn get_perm() -> Self::T;
19+
fn get_default_challenger() -> Self::T;
2020
}
2121

2222
pub(crate) fn new_array<const N: usize, F: PrimeField>(input: [u64; N]) -> [F; N] {

p3/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ repository.workspace = true
1010
version.workspace = true
1111

1212
[dependencies]
13+
p3-baby-bear.workspace = true
1314
p3-challenger.workspace = true
1415
p3-field.workspace = true
1516
p3-goldilocks.workspace = true
@@ -18,4 +19,3 @@ p3-mds.workspace = true
1819
p3-poseidon.workspace = true
1920
p3-poseidon2.workspace = true
2021
p3-symmetric.workspace = true
21-
p3-baby-bear.workspace = true

poseidon/src/challenger.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ where
2525

2626
impl<F: PoseidonField> DefaultChallenger<F> {
2727
pub fn new_poseidon_default() -> Self {
28-
DefaultChallenger::new(F::get_perm())
28+
DefaultChallenger::new(F::get_default_challenger())
2929
}
3030
}
3131

0 commit comments

Comments
 (0)