project screenshot 1
project screenshot 2
project screenshot 3

Darfecta

A decentralized dark pool on AltLayer using Uniswap & Brevis ZKPs for private, crypto trades.

Project Description

Decentralized Dark Pool Powered by Uniswap & Brevis

Overview

This project is a decentralized dark pool that enables private, large-volume crypto trades without revealing order details or affecting market prices. It leverages Brevis for zero-knowledge (ZK) proofs to ensure privacy and Uniswap for fair and decentralized pricing.

Problem & Solution

In traditional finance, dark pools allow institutional traders to execute large orders privately, reducing market impact and preventing front-running. However, in DeFi, transactions are fully transparent, making large trades vulnerable to MEV (Maximal Extractable Value) attacks and price slippage.

This project solves these issues by creating a privacy-preserving order matching system where orders are processed off-chain but settled on Uniswap. Brevis' ZK proofs validate order execution while keeping trade details confidential.

Key Features

  1. Private Order Matching – Orders are matched off-chain while ensuring correctness using Brevis ZK proofs.
  2. Zero-Knowledge Execution – Trade details remain private, with only necessary proofs submitted on-chain.
  3. Uniswap-Powered Pricing – Uses Uniswap’s liquidity for fair and trustless trade execution.
  4. Minimal Market Impact – Large trades are fragmented and executed as net positions to avoid slippage.

How It Works

  1. Users Submit Orders – Traders place buy/sell orders privately.
  2. ZK Order Matching – Orders are matched off-chain, with Brevis generating ZK proofs for validity.
  3. On-Chain Settlement – Only the net trade position is executed on Uniswap to minimize exposure.
  4. Privacy & Efficiency – Brevis ensures trade validity without exposing sensitive data.

Why This Matters?

  • Privacy-first DeFi trading – No front-running or trade leakage.
  • Fair pricing & deep liquidity – Trades settle against Uniswap’s AMM pools.
  • Institutional & whale-friendly – Large players can trade efficiently without moving market prices.

This project brings privacy, fairness, and efficiency to DeFi trading by combining Brevis’ ZK technology with Uniswap’s liquidity. 🚀

How it's Made

How It’s Made

This project is built using Golang, Solidity, and React, integrating Brevis for zero-knowledge proofs (ZKPs) and Uniswap for trade execution. The architecture consists of multiple components working together to ensure private, large-volume crypto trading.

Technology Stack

  • Golang – Backend for order management, trade matching, and ZK proof generation.
  • Solidity – Smart contracts for trade settlement on Uniswap, verifying ZK proofs from Brevis.
  • React – Frontend for traders to submit and monitor their orders seamlessly.
  • Brevis – Provides ZKPs for privacy-preserving trade matching and execution.
  • Uniswap – Used for pricing and on-chain settlement of net trade positions.

How It Works

  1. Order Submission (Frontend - React, Backend - Golang)

    • Users submit buy/sell orders through the React-based frontend.
    • Orders are processed off-chain in the Golang-based backend.
  2. Private Order Matching (Backend - Golang, Brevis ZK Proofs)

    • Orders are matched privately off-chain.
    • Brevis generates ZK proofs to validate the order execution without revealing details.
  3. On-Chain Settlement (Solidity, Uniswap, Brevis Verification)

    • Matched trades are sent to Uniswap in a netted format to avoid slippage.
    • Smart contracts verify Brevis' ZK proofs before executing the trade.
  4. Trade Execution & Confirmation

    • The transaction is executed on Uniswap.
    • The frontend updates the user’s order status once confirmed.

Notable Technical Challenges & Hacks

  • Privacy-Preserving Order Matching – Orders are never publicly broadcast, reducing front-running risks.
  • ZK Order Validation – Brevis ZK proofs confirm trade execution correctness without exposing trade details.
  • Efficient Settlement – Instead of executing each order separately, only the net trade difference is executed on Uniswap, minimizing price impact.
  • Optimized UI/UX – React frontend ensures a smooth trading experience, even with privacy layers.

By combining ZKPs for privacy, Uniswap for liquidity, and a robust Golang backend, this project achieves secure, anonymous, and efficient decentralized trading. 🚀

background image mobile

Join the mailing list

Get the latest news and updates