Larel
Role
Lead Smart Contract Developer
Technologies
Links
Overview
Larel is a confidential trading layer on Flare. A user shields a balance — it becomes a Poseidon2 note commitment in a Merkle tree, with amount and owner sealed inside the hash. From there they can transfer value privately, withdraw back to a public address, or place an order on a dark pool where the matching engine itself runs inside a Trusted Execution Environment.
Orders are ECIES-encrypted to the TEE's public key before they ever touch the chain. Inside the enclave they are decrypted, matched at the midpoint, and the result is signed. Only that signed result reaches the chain: which notes were spent and what was created — never the side, the size, or the limit price. The operator running the service cannot see the order book either.
Every state transition out of the shielded layer is gated by a zero-knowledge UltraHonk proof generated client-side (compiled from Noir circuits) and verified on-chain.
The Challenge
Public on-chain trading exposes traders to MEV frontrunning, sandwich attacks, and wallet tracking. Building a truly confidential trading layer on Flare required combining FAssets with zero-knowledge circuits and TEE-enclave order execution.
System Architecture
The Solution
Engineered LarelPool smart contracts on Flare with client-side zero-knowledge proof generation. Balances are shielded as Poseidon2 note commitments in a Merkle tree, orders are encrypted before broadcast, and the matching engine runs inside an AMD SEV Trusted Execution Environment so no party ever sees an unmatched order.
Key Features
- 1Shielded Balance Pool (FAssets & FXRP integration)
- 2Confidential dark pool order matching inside a TEE
- 3Zero-knowledge balance proofs (UltraHonk / BN254, Noir circuits)
- 4MEV-resistant enclave execution with on-chain settlement
Results & Learnings
"Deepened expertise in Flare State Connector, FAssets bridging, and asynchronous zero-knowledge proof verification on EVM."
Other Projects
View all →Siap untuk memulai
proyek berikutnya?