Update era setup data
Updates zksync-era prover setup data using the key_generator binary for a selected protocol version.
Use this script when you need to regenerate ZKsync Era prover setup.
Script performs the following steps:
- Builds
key_generatorwith GPU support. - Generates base layer setup data for required circuits.
- Generates recursive layer setup data for required circuits.
- Generates compressor data.
Local use
REPO_DIR="/path/to/zksync-era" \
BELLMAN_CUDA_DIR="/path/to/bellman-cuda" \
uv run -m scripts.era.update_era
To run the script, you will need:
- General prerequisites including uv, Rust and NodeJS
- Access to the
zksync-erarepository specified viaREPO_DIR PROTOCOL_VERSIONsupported by the script (currently defaults tov30)- Access to Bellman CUDA specified via
BELLMAN_CUDA_DIR