Skip to content

0xrlawrence/pribado-orchestrator-rofl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pribado ROFL Orchestrator

A ROFL (Runtime Off-chain Logic) application for the Pribado privacy mixer on Oasis Sapphire.

Overview

This ROFL app runs in a Trusted Execution Environment (TDX) and handles the orchestration of privacy-preserving fund transfers through a network of satellite vaults.

Deployment Info

  • App ID: rofl1qrcr8gdutxsv8wfct5h9u98hsm2ju39rkcffemsd
  • Network: Oasis Sapphire Testnet
  • TEE: Intel TDX
  • Contract: 0x9390A32F4d0e23A1F26788f652410cc73BC79872

Files

  • rofl.yaml - ROFL manifest defining the app configuration
  • compose.yaml - Docker Compose configuration for the container
  • Dockerfile - Container build instructions
  • orchestrator.js - Node.js orchestrator logic (Express API)
  • package.json - Node.js dependencies
  • src/main.rs - Rust ROFL app (alternative implementation)
  • Cargo.toml - Rust dependencies

Building

# Install Oasis CLI
curl -LO https://github.com/oasisprotocol/cli/releases/download/v0.18.1/oasis_cli_0.18.1_linux_amd64.tar.gz
tar -xzf oasis_cli_0.18.1_linux_amd64.tar.gz
mv oasis_cli_*/oasis /usr/local/bin/

# Build the ROFL bundle
oasis rofl build --force --verbose

Deploying

# Import wallet
oasis wallet import deployer --algorithm secp256k1-raw --secret YOUR_PRIVATE_KEY -y

# Update the ROFL app on-chain
oasis rofl update --account deployer -y

Architecture

  1. Deposit: User deposits funds with a ZK commitment
  2. Orbit: ROFL orchestrator moves funds through satellite groups (A→B→C→D)
  3. Withdraw: User proves ownership via ZK proof and withdraws to any address

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors