zkArb-sdk

πŸ“˜ zkArb SDK – CLI Outline

The zkArb CLI provides a set of commands to compile Circom circuits, test them locally, and deploy verifier contracts on-chain. Each command is designed to abstract away low-level tooling while keeping workflows explicit and developer-friendly.


Command: compile

Usage

npx zkarb-sdk compile <circomFilePath>

Arguments

Description

Compiles a Circom circuit into the necessary intermediate artifacts used for proof generation.

The compilation process generates:

These artifacts are later consumed by the test and deploy commands.

Example

npx zkarb-sdk compile circuits/transfer.circom

Command: test

Usage

npx zkarb-sdk test <folder> <inputJson>

Arguments

Description

Tests a compiled circuit by generating a witness, producing a proof, and deriving the corresponding public inputs.

This command performs the full local proof pipeline and generates:

This step is essential for validating circuit correctness before deployment.

Example

npx zkarb-sdk test build/transfer input.json

Command: deploy

Usage

npx zkarb-sdk deploy <folder> <privateKey> [options]

Arguments

Options

Description

Deploys the generated verifier.sol contract to the specified Arbitrum or Orbit network.

Depending on the flags provided, the command can perform standard, optimized, or cross-chain deployments. Deployment metadata and contract addresses are recorded for later reference.

Examples

npx zkarb-sdk deploy build/transfer 0xPRIVATE_KEY
npx zkarb-sdk deploy build/transfer 0xPRIVATE_KEY --network orbit --rpc http://localhost:8545
npx zkarb-sdk deploy build/transfer 0xPRIVATE_KEY --bridge-l1

Command Flow Summary

  1. Compile the circuit
    npx zkarb-sdk compile circuit.circom
    
  2. Test the circuit locally
    npx zkarb-sdk test build/circuit input.json
    
  3. Deploy the verifier on-chain
    npx zkarb-sdk deploy build/circuit 0xPRIVATE_KEY
    

← Back to Index (index.md)