DELPHINUS-ZKWASM
  • ZKWASM-Book
  • ZKWASM for beginners
    • Quick Start
      • Setup & Build the ZKWASM binary
      • Prepare WASM Image
      • Setup ZKWASM circuit
      • Prove WASM execution
      • Aggregate (Batch) proofs
    • Host(Builtin) Functions
      • IO Functions
      • State Related Functions
      • Poseidon Signature
  • Build a Rollup Application
    • Rollup Application Sketch
    • Writing ZKWASM Application
      • Debug Execution Trace Size of Your Code
    • Proof Generation Architectrue
      • Segment Proof Generation
      • Batch ZKWASM proofs
      • Continuation Proof of Segments
    • Build a Rollup Protocol
  • Circuit Design
    • ZKWASM Circuits
      • Guest Circut
      • Host Circuits.
      • Aggregation(Batch) Circuit
  • ZKWASM Cloud Service
    • Typescript SDK for connecting with ZKWASM cloud.
  • MISC Q&A
Powered by GitBook
On this page
  1. ZKWASM for beginners
  2. Quick Start

Setup & Build the ZKWASM binary

PreviousQuick StartNextPrepare WASM Image

Last updated 7 months ago

To build and run these projects requires the Rust compiler. Install rustup with:

curl --proto '=https' --tlsv1.3 https://sh.rustup.rs -sSf | sh

Verify the installation with:

rustc --version

Clone the repo and move into the directory:

git clone --recurse-submodules https://github.com/DelphinusLab/zkWasm.git

Build using cargo (CPU version):

cargo build --release

Build GPU version (The recommended way of running zkWASM prover):

cargo build --release --features perf

Also if you do not have a powerful gpu (eg. nvidia-4090), you can compromize the performance by

cargo build --release --features cuda
zkWasm