A ROFL (Runtime Off-chain Logic) application for the Pribado privacy mixer on Oasis Sapphire.
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.
- App ID:
rofl1qrcr8gdutxsv8wfct5h9u98hsm2ju39rkcffemsd - Network: Oasis Sapphire Testnet
- TEE: Intel TDX
- Contract:
0x9390A32F4d0e23A1F26788f652410cc73BC79872
rofl.yaml- ROFL manifest defining the app configurationcompose.yaml- Docker Compose configuration for the containerDockerfile- Container build instructionsorchestrator.js- Node.js orchestrator logic (Express API)package.json- Node.js dependenciessrc/main.rs- Rust ROFL app (alternative implementation)Cargo.toml- Rust dependencies
# 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# 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- Deposit: User deposits funds with a ZK commitment
- Orbit: ROFL orchestrator moves funds through satellite groups (A→B→C→D)
- Withdraw: User proves ownership via ZK proof and withdraws to any address
MIT