Before you begin, ensure that you have the necessary tools installed:
sudo apt update
sudo apt install -y git build-essential
Install Rust and Cargo if they are not already installed:
curl --proto '=https' --tlsv1.2 -sSf <https://sh.rustup.rs> | sh
source $HOME/.cargo/env
Clone the snarkOS repository:
git clone <https://github.com/AleoHQ/snarkOS.git>
cd snarkOS
git checkout mainnet-staging
Now build the project:
cargo build --release
To start a node in development mode, use the following command:
./target/release/snarkos start --nodisplay --dev 0
Client Node:
./target/release/snarkos start --nodisplay --dev 0 --client
Prover Node: