Web3

Larel

SolidityReactTailwind CSSThree.jsRustFoundrywagmiviemZero-Knowledge Proofs

Role

Lead Smart Contract Developer

Technologies

SolidityReactTailwind CSSThree.jsRustFoundrywagmiviemZero-Knowledge Proofs

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

  • 1
    Shielded Balance Pool (FAssets & FXRP integration)
  • 2
    Confidential dark pool order matching inside a TEE
  • 3
    Zero-knowledge balance proofs (UltraHonk / BN254, Noir circuits)
  • 4
    MEV-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."

Siap untuk memulai
proyek berikutnya?

Halo! 👋

Kirim pesan langsung

firdaussyah03@gmail.com
ATAU
Saya butuh bantuan untuk...