Overview
The approach depends on the product:- For trustless flows like our RFQ system, we rely on atomic swaps with no external coordination other than quote discovery.
- For the CLOB and the AMM, we combine TEEs and validators for intent-based execution at settlement. Funds stay in the user’s control, and trust is only required during execution.
Core Primitives
Atomic Swap
The atomic swap is the fundamental building block of Flashnet. On Spark, atomic swaps are implemented using adaptor signatures, where the exchange is enforced by L1 validation and Bitcoin consensus rules. This creates a trustless exchange mechanism between two parties.Intents System


- Minimal exposure window: Each execution environment is designed with the shortest possible lifecycle, ensuring funds are only exposed during the brief settlement period and not subject to long-term holding risks unless the user explicitly opts to hold. (market makers, LPing, etc. where it makes more sense to have a long-term exposure)
- Isolated MPC wallets: Rather than using a single shared MPC wallet, each user operates with multiple dedicated MPC wallets, ensuring that if one wallet is compromised, the others remain secure and isolated from system-wide risk.
AMM


Centralized Limit-Orderbook


- Settlement via our intent-based execution engine with validator oversight
- User-controlled delegated trading wallets using threshold signature schemes
- Safety mechanisms allowing users to:
- Exit unilaterally to L1
- Coordinate exit via Spark transaction
- Cancel orders at any time to revoke approval and recover locked funds