@tokamak-zk-evm/synthesizer-node
v1.0.3
Published
Node CLI for running the Tokamak zk-EVM synthesizer against JSON transaction snapshot inputs.
Downloads
487
Readme
Tokamak zk-EVM Synthesizer Node CLI
@tokamak-zk-evm/synthesizer-node is the Node package for running the Tokamak zk-EVM synthesizer against JSON snapshot inputs.
Install
npm install @tokamak-zk-evm/synthesizer-nodePackage Role
- Exposes the published
synthesizerCLI. - Loads
@tokamak-zk-evm/subcircuit-libraryfrom the installed dependency at runtime. - Reads one JSON transaction replay payload from disk.
- Writes synthesized JSON artifacts back to disk.
The shared synthesis logic lives in ../core and is bundled into this package at build time.
CLI usage
synthesizer tokamak-ch-tx \
--previous-state ./previous_state_snapshot.json \
--transaction ./transaction.json \
--block-info ./block_info.json \
--contract-code ./contract_codes.jsonRequired Input Files
previous_state_snapshot.jsontransaction.jsonblock_info.jsoncontract_codes.json
These files must describe a complete synthesis payload for one transaction replay.
Output Files
The CLI writes:
placementVariables.jsoninstance.jsoninstance_description.jsonpermutation.jsonstate_snapshot.jsonstep_log.jsonmessage_code_addresses.json
Notes
- Build-time dependency metadata is exported as
buildMetadata. - The same metadata is also written to
build-metadata.jsonin the published package root. buildMetadata.dependencies.subcircuitLibrary.buildVersionrecords the version present when this package was built, while the Node runtime still resolves the installed@tokamak-zk-evm/subcircuit-librarypackage.buildMetadata.dependencies.tokamakL2js.buildVersionrecords the exacttokamak-l2jsversion bundled into the published package.- Debug-only config execution lives under
examples/config-runner.ts. - Browser usage belongs to
@tokamak-zk-evm/synthesizer-web. - Workspace overview: ../README.md
- Workspace changelog: ../CHANGELOG.md
