Execution
Execution in Flashnet Trade is powered by an intent-based execution engine, which is verified by a distributed network of validators. These validators confirm the intent behind trade matches and collaborate to settle trades securely.How It Works
- When a match is triggered by a Flashnet market, funds are temporarily held in a delegated validator wallet. This wallet is jointly controlled by the user and a consortium of validators, ensuring that validators cannot move funds unilaterally.
- Validators can only sign off on transactions that match the user’s intent. This setup minimizes the time funds are outside the user’s full self-custody, enabling non-interactive, fair, and transparent trade settlement.
- Both the validators and the settlement process run within a Trusted Execution Environment, which provides cryptographic attestations to verify their legitimacy to external parties.
Risks and Mitigations
The primary risk arises if a majority of validators are compromised, potentially allowing them to authorize fraudulent transactions. To mitigate this:- Users can always exit by:
- Unilaterally sequencing funds to Layer 1, bypassing the settlement layer entirely.
- Collaborating with a minority of validators to redirect funds to a new address under their sole control.
Order Matching
Order matching is performed in a tight-knit centralized system to prioritize high-efficiency matching.How It Works
- The matching engine processes orders based on standard price/time priority.
- The matching engine does not touch funds, it simply matches orders and reports the results to the execution layer.