High-Level Overview
CLOAK uses a modular architecture that separates user intent from on-chain execution. This separation is the basis of the privacy model. The system comprises three main components:- User Client (Web App): Wallet connection and intent signing.
- Relay & Orchestrator: Backend services that process intents and manage execution.
- Executor Network: A set of hot wallets that submit transactions to the blockchain.
Key Components
1. Relay Layer
The Relay is a stateless service that receives encrypted intents from the client. It performs validation and rate-limiting, then forwards the encrypted payload to the Orchestrator. The Relay does not possess decryption keys for intents.2. Orchestrator
The Orchestrator is the core coordination component. It:- Verifies the user signature.
- Decrypts the intent.
- Plans execution (e.g., chunk scheduling for Stealth Mode).
- Selects an Executor Wallet.
- Monitors the chain for settlement.