This directory contains the protocol libraries for ZKsync project, including the implementation of out-of-circuit and in-circuit VM, as well as utilities required for witness generation and CPU proving.
It is a cargo workspace of its own, so cargo commands need to run from here (or
with --manifest-path protocol/Cargo.toml):
cd protocol
cargo build
cargo nextest run --release --manifest-path crates/zkevm_test_harness/Cargo.tomlThe toolchain, the cargo config and the cargo deny policy come from the
repository root, which is the only copy of each.
The project contains the following crates:
- zk_evm_abstractions
- zkevm_opcode_defs
- zkevm-assembly
- zkevm_circuits
- zk_evm
- circuit_defintions
- circuit_encodings
- kzg
- zkevm_test_harness
- The crates here depend on five crates in
../crypto/by path, socargo buildhere does build them -- it just never runs their tests or format checks. - The dependency runs the other way for
../vm2/: it depends onzk_evm,zk_evm_abstractionsandzkevm_opcode_defsby path, and nothing here refers to it, socargo buildhere never compiles it.