Skip to content

Commit

Permalink
Refactor FriReducedOpeningChip
Browse files Browse the repository at this point in the history
  • Loading branch information
nyunyunyunyu committed Jan 22, 2025
1 parent 322765a commit edc6db6
Show file tree
Hide file tree
Showing 13 changed files with 576 additions and 421 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions crates/vm/src/arch/testing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,18 @@ impl VmChipTestBuilder<BabyBear> {
let tester = tester.load(self.execution);
tester.load(self.program)
}
pub fn build_babybear_poseidon2(self) -> VmChipTester<BabyBearPoseidon2Config> {
self.memory
.controller
.borrow_mut()
.finalize(None::<&mut Poseidon2PeripheryChip<BabyBear>>);
let tester = VmChipTester {
memory: Some(self.memory),
..Default::default()
};
let tester = tester.load(self.execution);
tester.load(self.program)
}
}

impl<F: PrimeField32> Default for VmChipTestBuilder<F> {
Expand Down
1 change: 1 addition & 0 deletions extensions/native/circuit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ eyre.workspace = true
serde.workspace = true
serde-big-array.workspace = true
bitcode.workspace = true
static_assertions.workspace = true

[dev-dependencies]
openvm-stark-sdk = { workspace = true }
Expand Down
Loading

0 comments on commit edc6db6

Please sign in to comment.