Installation Prover
Set Up Node
Installing Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Start by cloning this GitHub repository:
git clone --branch mainnet --single-branch https://github.com/AleoNet/snarkOS.git
Next, move into the snarkOS
directory:
cd snarkOS
git checkout tags/testnet-beta
[For Ubuntu users] A helper script to install dependencies is available. From the snarkOS
directory, run:
./build_ubuntu.sh
Lastly, install snarkOS
:
cargo install --locked --path .
4130/tcp
and 3030/tcp
are open on your router and OS firewall.Run an Aleo Prover
Start by following the instructions in the Build Guide.
Next, generate an Aleo account address:
snarkos account new
This will output a new Aleo account in the terminal.
Please remember to save the account private key and view key. The following is an example output:
Private Key APrivateKey1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx <-- Save Me And Use In The Next Step
View Key AViewKey1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx <-- Save Me
Address aleo1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx <-- Save Me
Next, to start a proving node, from the snarkOS
directory, run:
./run-prover.sh
./run-prover.sh --network 1
When prompted, enter your Aleo private key:
Enter the Aleo Prover account private key:
APrivateKey1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Create Service
sudo tee /etc/systemd/system/prover.service > /dev/null <<EOF
[Unit]
Description=Aleo Prover Node
After=network.target
[Service]
User=$USER
WorkingDirectory=$HOME/snarkOS
ExecStart=$HOME/.cargo/bin/snarkos start --prover --nodisplay --network 1 --private-key private_key_lu
Restart=on-failure
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl restart prover && sudo journalctl -fu prover -o cat