Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor code #1558

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions field/src/fft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@ fn fft_dispatch<F: Field>(
zero_factor: Option<usize>,
root_table: Option<&FftRootTable<F>>,
) {
let computed_root_table = if root_table.is_some() {
None
} else {
Some(fft_root_table(input.len()))
};
let computed_root_table = root_table.is_none().then(|| fft_root_table(input.len()));
let used_root_table = root_table.or(computed_root_table.as_ref()).unwrap();

fft_classic(input, zero_factor.unwrap_or(0), used_root_table);
Expand Down
2 changes: 0 additions & 2 deletions starky/src/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,6 @@ where
);

// Permutation arguments.

let constraint_degree = stark.constraint_degree();
let lookup_challenges = stark.uses_lookups().then(|| {
if let Some(c) = ctl_challenges {
c.challenges.iter().map(|ch| ch.beta).collect::<Vec<_>>()
Expand Down