The zkArb SDK is designed to be fully cross-platform, allowing developers to compile Circom circuits and generate zkSNARK artifacts seamlessly on Linux, macOS, and Windows systems.
To ensure consistent behavior across operating systems, the SDK includes prebuilt Circom binaries for each supported platform.
The correct binary is automatically selected by the internal utility script getCircomPath.js located in the lib/ directory.
This approach eliminates the need for users to install Circom manually or handle environment-specific configurations.
npx zkarb-sdk compile <path-to-your-circom-file>
os module.The following binaries are included in the bin/ folder of the repository:
bin/
βββ circom-linux β Used on Linux systems
βββ circom-macos β Used on macOS systems
βββ circom-windows.exe β Used on Windows systems
These files are prebuilt and shipped with the SDK to guarantee compatibility without requiring manual compilation.
This file is responsible for:
os packagecli.js) uses the right executable during circuit compilationThe returned path is then consumed by the compileCircuit function inside lib/compile.js.
The SDKβs cross-platform stability is verified using a GitHub Actions CI workflow located at:
.github/workflows/test.yml
This workflow runs automated tests on:
Each environment runs:
npm install
npm test
to ensure that circuit compilation and artifact generation behave identically on all systems.
| Platform | Binary Used | Verified via CI |
|---|---|---|
| Linux | circom-linux |
β |
| macOS | circom-macos |
β |
| Windows | circom-windows.exe |
β |
The zkArb SDK is built to work everywhere, making it an ideal tool for developers building zero-knowledge applications across different environments.
β Go back to Index