Installation
Set up your environment with all required dependencies
Prerequisites
zkkit requires these underlying tools to function. zkkit itself is a wrapper that orchestrates circom and snarkjs commands.
ℹ️ Understanding Dependencies
circom compiles circuit code into mathematical constraints
snarkjs performs the actual cryptographic operations (powered by JavaScript and WASM)
zkkit wraps these tools with convenient CLI commands and sensible defaults
1. Rust
Rust is required for compiling zero-knowledge circuits efficiently.
Install Rust using rustup on Ubuntu/Debian-based systems:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shAfter installation, configure your current shell:
source $HOME/.cargo/envVerify the installation:
rustc --version2. Circom
Circom is the circuit compiler for zero-knowledge proofs.
Install Circom on Ubuntu/Debian-based systems:
git clone https://github.com/iden3/circom.gitcd circomcargo build --releasecargo install --path circomVerify the installation:
circom --version3. SnarkJS
SnarkJS is a JavaScript library for zero-knowledge proofs. Requires Node.js to be installed.
First, ensure Node.js is installed. Then install SnarkJS globally:
npm install -g snarkjsVerify the installation:
snarkjs --versionInstall zkkit
Once all prerequisites are installed, install zkkit globally using npm:
npm install -g zkkitVerify the installation:
zkkit --versionNext Steps
Now that you have zkkit installed, explore the available commands: