Skip to content

Commit

Permalink
Add batch openings
Browse files Browse the repository at this point in the history
  • Loading branch information
hratoanina committed Jul 12, 2024
1 parent 8b653b2 commit b86c0d2
Show file tree
Hide file tree
Showing 2 changed files with 374 additions and 63 deletions.
16 changes: 16 additions & 0 deletions evm_arithmetization/src/all_stark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,22 @@ impl Table {
[4, 5, 3, 6, 8, 7, 0, 1, 2]
}

/// Returns the ordered position of the tables in a batch Merkle tree. Each
/// entry is a couple to account for duplicate sizes.
pub(crate) const fn table_to_sorted_index_pair() -> [(usize, usize); NUM_TABLES] {
[
(3, 0),
(3, 1),
(2, 0),
(3, 2),
(5, 0),
(4, 0),
(0, 0),
(1, 0),
(1, 1),
]
}

/// Returns all STARK padded trace degrees in descending order.
pub(crate) const fn all_degree_logs() -> [usize; NUM_TABLES] {
[23, 22, 22, 20, 19, 19, 19, 17, 14]
Expand Down
Loading

0 comments on commit b86c0d2

Please sign in to comment.