Skip to content

Commit

Permalink
move evm_circuit::witness as crate::witness; split it into smaller mo…
Browse files Browse the repository at this point in the history
…ds (privacy-scaling-explorations#726)

* move evm_circuit::witness as crate::witness; split it into smaller mods

* fix merge

* add basic docs

* fmt
  • Loading branch information
lispc authored Sep 7, 2022
1 parent 6aafd7c commit 3e400dc
Show file tree
Hide file tree
Showing 18 changed files with 1,523 additions and 1,463 deletions.
4 changes: 2 additions & 2 deletions zkevm-circuits/src/evm_circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ use halo2_proofs::{

mod execution;
pub mod param;
mod step;
pub(crate) mod step;
pub(crate) mod util;

pub mod table;
pub mod witness;

use crate::table::LookupTable;
pub use crate::witness;
use eth_types::Field;
use execution::ExecutionConfig;
use itertools::Itertools;
Expand Down
1 change: 0 additions & 1 deletion zkevm-circuits/src/evm_circuit/table.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use crate::evm_circuit::step::ExecutionState;
use crate::impl_expr;
pub use crate::table::TxContextFieldTag;
use eth_types::Field;
use gadgets::util::Expr;
use halo2_proofs::plonk::Expression;
Expand Down
2 changes: 1 addition & 1 deletion zkevm-circuits/src/evm_circuit/util/common_gadget.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ use crate::{
math_gadget::{AddWordsGadget, RangeCheckGadget},
Cell, Word,
},
witness::{Block, Call, ExecStep},
},
table::{AccountFieldTag, CallContextFieldTag},
util::Expr,
witness::{Block, Call, ExecStep},
};
use eth_types::{Field, ToLittleEndian, ToScalar, U256};
use halo2_proofs::{
Expand Down
Loading

0 comments on commit 3e400dc

Please sign in to comment.