Quick Start
Get started with Paraloom in 5 minutes
Quick Start
Get Paraloom up and running on your local machine.
Prerequisites
Before you begin, ensure you have:
- Rust 1.70+ - Install Rust
- Solana CLI 1.16+ - Install Solana
- 4GB RAM minimum
- 10GB disk space
Installation
1. Clone the Repository
git clone https://github.com/paraloom-labs/paraloom-core.git
cd paraloom-core2. Build Everything
# Build Rust components
cargo build --release
# Build Solana program
cargo build-sbf3. Run Tests
# Run all tests
cargo test --all --all-targets
# With output
cargo test --all --all-targets -- --nocaptureLocal Testing (5 Validators)
Start Solana Localnet
In Terminal 1:
solana-test-validatorStart Paraloom Validators
In Terminal 2:
./scripts/localnet/start-all.shRun Privacy E2E Tests
In Terminal 3:
./scripts/localnet/test-privacy-e2e.shStop Validators
When done:
./scripts/localnet/stop-all.shCompute Layer Demo
Run the distributed compute demonstration:
cargo run --bin compute-demoThis shows:
- 3 validators registering with different capacities
- 7 jobs submitted and load-balanced
- Job assignment and execution
- Result aggregation
Private Compute Example
cargo run --example private_compute_demoOutput demonstrates:
- Private job creation with encrypted input
- Input commitment generation
- Submission to shielded pool
- Multi-validator execution (2/3 consensus)
- zkSNARK proof generation
- Result verification and finalization
- Encrypted output retrieval
Devnet Testing
Make sure you have devnet SOL for testing. Use solana airdrop 2 to get test tokens.
# Configure Solana CLI
solana config set --url devnet
# Start validators connected to devnet
./scripts/devnet/start-all.sh
# View logs
tail -f logs/devnet/validator1.log
# Stop validators
./scripts/devnet/stop-all.shNext Steps
- Architecture Overview - Understand the system design
- Privacy Layer - Learn about zkSNARK implementation
- Validator Guide - Run your own validator node