AeroMatch

AeroMatch is an HFT matching engine that executes orders in nanoseconds and settles positions natively on XRPL. Fast where speed matters. Final where trust matters.

Project Information

At a Glance

AeroMatch is an HFT matching engine that executes orders in nanoseconds and settles positions natively on XRPL. Fast where speed matters. Final where trust matters.

Description

XRPL finalizes transactions in 3-4 seconds; extraordinary for a blockchain, but an eternity for a market maker. Today, sophisticated liquidity providers can't use XRPL's native DEX for serious trading operations. Consensus latency makes it impossible to react to price movements fast enough, manage risk in real time, or run competitive quoting strategies. So they go to centralized exchanges; and XRPL loses the volume and the liquidity depth it deserves.

AeroMatch solves this with one architectural decision: match off-chain at hardware speed, settle on-chain with XRPL finality.

The matching layer operates at the metal; a custom C++ L2 engine built for HFT, processing millions of orders per second with sub-microsecond latency. No garbage collector. No dynamic allocation on the hot path. Pure deterministic execution.

The settlement layer lives on XRPL. The engine continuously tracks a netting ledger; who owes what to whom across all fills. Every 10,000 fills, it crystallizes net positions into real XRPL Payment transactions. The result: thousands of trades settled in a single on-chain transaction, finalized in seconds, verifiable by anyone.

AeroMatch also introduces an ESG scoring layer, built directly into the matching engine. Every trader carries an ESG score reflecting their environmental and social footprint. The better the score, the lower the trading fee, calculated on every fill, encoded at the protocol level, settled on-chain. This is not a label or a certificate. It is a direct, measurable financial advantage for sustainable behavior, provable on a public ledger.

The business opportunity is the liquidity XRPL's DEX is missing. Deep markets need market makers. Market makers need speed. AeroMatch gives them the execution environment they need while keeping every settlement transparent and on-ledger. The ESG layer opens a second market: institutional capital with sustainability mandates now has infrastructure that proves responsible trading at the transaction level; by design, not by declaration.

Blockchain and high-frequency trading have always been seen as opposites. One slow, transparent, public. The other fast, opaque, private. AeroMatch proves they are complements. Fast where speed matters. Final where trust matters. Greener where it matters too.

Technical Details

C++23 matching engine with zero dynamic allocation on the hot path. Core components: arena allocator (mmap-backed, cache-line aligned), a bitmask price index (3-level hierarchy, O(1) best bid/ask via LZCNT/TZCNT), a free-list order book with SoA layout for cache efficiency, and a branchless STP (self-trade prevention) using sign-bit arithmetic.

Network ingress via AF_XDP / XDP kernel bypass (falls back to synthetic ingress in demo mode). IPC between engine and Python shell via Tachyon shared-memory transport.

The netting ledger uses a seqlock-based snapshot mechanism for lock-free reads. Every 10,000 fills, a NettingSnapshot is published over a secondary Tachyon channel to the Python settlement node.

The settlement node (Python/xrpl-py) connects to XRPL Testnet with WebSocket failover, provisions trader wallets via faucet, and submits Payment transactions with SourceTag attribution.

ESG fees are computed per fill at matching time using a per-trader score table, with fee

Team

2
RE

Riyane El qoqui

GD

Gaspard d'Halluin

Hackathon

HACK THE BLOCK 2026 Paris Blockchain Week XRPL Hackathon

Duration

Apr 11, 6:30 AM - Apr 12, 6:00 PM UTC

View Hackathon Details