Skip to content

Commit

Permalink
Lower trace length
Browse files Browse the repository at this point in the history
  • Loading branch information
hratoanina committed Jul 16, 2024
1 parent 29b7ce4 commit 791a840
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions evm_arithmetization/src/all_stark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ impl Table {
pub(crate) const fn all_sorted() -> [Self; NUM_TABLES] {
[
Self::Memory,
Self::Cpu,
Self::MemBefore,
Self::MemAfter,
Self::Cpu,
Self::Arithmetic,
Self::BytePacking,
Self::Logic,
Expand All @@ -140,7 +140,7 @@ impl Table {
/// Returns the ordered position of the tables. This is the inverse of
/// `all_sorted()`.
pub(crate) const fn table_to_sorted_index() -> [usize; NUM_TABLES] {
[4, 5, 3, 7, 8, 6, 0, 1, 2]
[4, 5, 1, 7, 8, 6, 0, 2, 3]
}

/// Returns the ordered position of the tables in a batch Merkle tree. Each
Expand All @@ -149,19 +149,19 @@ impl Table {
[
(0, 0),
(1, 0),
(1, 1),
(2, 0),
(2, 1),
(2, 2),
(2, 3),
(3, 0),
(3, 1),
(3, 2),
(3, 3),
(4, 0),
]
}

/// Returns all STARK padded trace degrees in descending order.
pub(crate) const fn all_degree_logs() -> [usize; NUM_TABLES] {
[23, 22, 22, 20, 20, 20, 20, 18, 16]
[23, 20, 18, 18, 16, 16, 16, 16, 14]
}
}

Expand Down
2 changes: 1 addition & 1 deletion evm_arithmetization/src/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ pub(crate) fn zkevm_fast_config() -> StarkConfig {
proof_of_work_bits: 16,
// This strategy allows us to hit all intermediary STARK leaves while going through the
// batched Field Merkle Trees.
reduction_strategy: FriReductionStrategy::Fixed(vec![1, 2, 2, 2, 4, 4, 4]),
reduction_strategy: FriReductionStrategy::Fixed(vec![3, 2, 2, 2, 4, 4, 2]),
num_query_rounds: 84,
},
}
Expand Down

0 comments on commit 791a840

Please sign in to comment.