ParaloomPARALOOM

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:

Installation

1. Clone the Repository

git clone https://github.com/paraloom-labs/paraloom-core.git
cd paraloom-core

2. Build Everything

# Build Rust components
cargo build --release

# Build Solana program
cargo build-sbf

3. Run Tests

# Run all tests
cargo test --all --all-targets

# With output
cargo test --all --all-targets -- --nocapture

Local Testing (5 Validators)

Start Solana Localnet

In Terminal 1:

solana-test-validator

Start Paraloom Validators

In Terminal 2:

./scripts/localnet/start-all.sh

Run Privacy E2E Tests

In Terminal 3:

./scripts/localnet/test-privacy-e2e.sh

Stop Validators

When done:

./scripts/localnet/stop-all.sh

Compute Layer Demo

Run the distributed compute demonstration:

cargo run --bin compute-demo

This 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_demo

Output 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.sh

Next Steps

On this page