Installation

System Requirements

ResourceMinimumRecommended
CPU1 vCPU2+ vCPU
RAM512 MB1–2 GB
Disk5 GB SSD20 GB SSD
Network10 Mbps100 Mbps
OSLinux (Ubuntu 22.04+, Debian 12), macOS, WindowsUbuntu 22.04 LTS

The daemon is a single Rust binary with low overhead. A $5/month VPS (Hetzner CX22, DigitalOcean Basic Droplet, Vultr Cloud Compute) is more than enough for testnet.


Docker (Fastest)

Run a node with a single command — no Rust toolchain needed:

docker run -d \
  --name rougechain-node \
  -p 5100:5100 \
  -v qv-data:/data \
  rougechain/node \
  --mine --peers https://testnet.rougechain.io/api

Verify it's running:

curl http://127.0.0.1:5100/api/health

docker-compose

For a persistent setup, create a .env file:

API_PORT=5100
QV_PEERS=https://testnet.rougechain.io/api
CHAIN_ID=rougechain-devnet-1

Then start:

git clone https://github.com/cyberdreadx/rougechain-node
cd rougechain-node
docker compose up -d

View logs:

docker compose logs -f node

Build the image locally

git clone https://github.com/cyberdreadx/rougechain-node
cd rougechain-node
docker build -t rougechain/node .

Build from Source

Install and build manually if you prefer not to use Docker.

Prerequisites

Linux / macOS

# Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source ~/.cargo/env

# Install build dependencies (Ubuntu/Debian)
sudo apt update && sudo apt install -y build-essential pkg-config libssl-dev

# Install build dependencies (macOS)
xcode-select --install

Windows

  1. Install Rust
  2. Install Visual Studio Build Tools
  3. Ensure cargo is in your PATH

Compile

# Clone the repository
git clone https://github.com/cyberdreadx/rougechain-node
cd rougechain-node/core

# Build release binary
cargo build --release -p quantum-vault-daemon

# Binary location
./target/release/quantum-vault-daemon --help

Verify Installation

./target/release/quantum-vault-daemon --version

Expected output:

quantum-vault-daemon 0.1.0

First Run

Option A: Connect to Testnet

./target/release/quantum-vault-daemon \
  --api-port 5100 \
  --peers "https://testnet.rougechain.io/api"

Option B: Start Local Devnet

./target/release/quantum-vault-daemon --mine --api-port 5100

Verify Node is Running

curl http://127.0.0.1:5100/api/health

Expected response:

{"status":"ok","chain_id":"rougechain-devnet-1","height":0}

Directory Structure

After first run, data is stored at:

OSDefault Location
Linux/macOS~/.quantum-vault/core-node/
WindowsC:\Users\<you>\.quantum-vault\core-node\

Updating

cd rougechain-node
git pull
cd core
cargo build --release -p quantum-vault-daemon

# Restart the node

Troubleshooting

"cargo not found"

source ~/.cargo/env
# or restart your terminal

"OpenSSL not found"

# Ubuntu/Debian
sudo apt install libssl-dev pkg-config

# Fedora/RHEL
sudo dnf install openssl-devel

# macOS
brew install openssl

"Address already in use"

Another process is using port 5100:

# Find and kill it
lsof -i :5100
kill -9 <PID>

# Or use a different port
./quantum-vault-daemon --api-port 5101

Build fails on Windows

Ensure you have Visual Studio Build Tools with C++ workload installed.


Environment Variables

All CLI flags can also be set via environment variables:

VariableCLI FlagDefaultDescription
QV_PEERS--peersComma-separated peer URLs
QV_PUBLIC_URL--public-urlThis node's public URL for peer discovery
QV_CORS_ORIGINSlocalhost onlyComma-separated allowed CORS origins
QV_API_KEYS--api-keysComma-separated API keys for authenticated access
QV_BRIDGE_CUSTODY_ADDRESS--bridge-custody-addressEVM custody address (enables bridge)
QV_BASE_SEPOLIA_RPC--base-sepolia-rpchttps://sepolia.base.orgBase Sepolia RPC URL

Common CLI-only flags:

FlagDefaultDescription
--host127.0.0.1Bind address. Use 0.0.0.0 for public nodes
--api-port5101REST API port
--mineoffEnable block production
--data-dir~/.quantum-vault/core-node/Chain data directory
--chain-idrougechain-devnet-1Network chain ID
--block-time-ms400Target block time in milliseconds