Skip to main content

Build from Source

You can build the reference prover node implementation on Linux and macOS.

Requirements

Build Binaries

You can build the reference prover node implementation with:

git clone https://github.com/succinctlabs/network.git
cd node
RUSTFLAGS="-C target-cpu=native" cargo build --release

Compilation will take a few minutes. You can test that the build is successful with:

./target/release/spn-node --version

Build Docker Images

We provide a Dockerfile for building the prover on CPU and GPU.

To build the image from source, navigate to the root of the repository and run the following for CPU:

docker build --target cpu -t spn-node:latest-cpu .

and the following for GPU:

docker build --target gpu -t spn-node:latest-gpu .

You can test the image with:

docker run spn-node:latest-cpu --version