Skip to content

Commit

Permalink
rename frame table lookup api
Browse files Browse the repository at this point in the history
  • Loading branch information
junyu0312 committed Jul 2, 2024
1 parent 75476fb commit ee90a69
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/zkwasm/src/circuits/bit_table/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ pub struct BitTableConfig<F: FieldExt> {
_mark: PhantomData<F>,
}

pub(in crate::circuits) const STEP_SIZE: usize = 11;
pub(self) const STEP_SIZE: usize = 11;
pub(self) const BLOCK_SEL_OFFSET: usize = 1;
pub(self) const U32_OFFSET: [usize; 2] = [1, 6];
pub(self) const U8_OFFSET: [usize; 8] = [2, 3, 4, 5, 7, 8, 9, 10];
Expand Down
2 changes: 1 addition & 1 deletion crates/zkwasm/src/circuits/etable/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ impl<F: FieldExt> EventTableConfig<F> {
brtable_lookup_cell.curr_expr(meta) * fixed_curr!(meta, step_sel)
});

jtable.configure_in_event_table(meta, "c8c. jtable_lookup in jtable", |meta| {
jtable.configure_lookup_in_frame_table(meta, "c8c. jtable_lookup in jtable", |meta| {
(
fixed_curr!(meta, step_sel),
common_config.is_returned_cell.curr_expr(meta) * fixed_curr!(meta, step_sel),
Expand Down
2 changes: 1 addition & 1 deletion crates/zkwasm/src/circuits/jtable/configure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl<F: FieldExt> JTableConstraint<F> for JumpTableConfig<F> {

impl<F: FieldExt> JumpTableConfig<F> {
/// Frame Table Constraint 4. Etable step's call/return record can be found on jtable_entry
pub(in crate::circuits) fn configure_in_event_table(
pub(in crate::circuits) fn configure_lookup_in_frame_table(
&self,
meta: &mut ConstraintSystem<F>,
key: &'static str,
Expand Down

0 comments on commit ee90a69

Please sign in to comment.