git404hub

what is veilswap fr?

tang-vu/veilswap — explained in plain English

Analysis updated 2026-05-18

0TypeScriptAudience · developerComplexity · 5/5Setup · hard

tl;dr

A confidential token swap protocol that hides trade size and direction using encrypted smart contracts, settling only net leftovers on Uniswap.

vibe map

mindmap
  root((veilswap))
    What it does
      Confidential Ethereum swaps
      Encrypted balances and intents
      Netted epoch settlement on Uniswap
    Tech stack
      Solidity
      TypeScript
      React
      iExec Nox
    Use cases
      Trade WETH or USDC without revealing size
      Verify privacy claims via chain view mode
      Run a permissionless settlement keeper
    Audience
      Blockchain developers
      DeFi privacy researchers
    Concepts
      Intel TDX enclaves
      k-anonymity batching
      Ownerless permissionless design

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Swap WETH or USDC on Ethereum without revealing trade direction, size, or price limit publicly.

VIBE 2

Use the chain view mode to independently verify exactly what an outside observer can see.

VIBE 3

Run the permissionless keeper service to settle epochs and net opposing trades.

VIBE 4

Deploy and test the confidential contracts against a local Nox stack in Docker.

what's the stack?

SolidityTypeScriptReactiExec NoxDocker

how it stacks up fr

tang-vu/veilswap0xradioac7iv/tempfs7vignesh/pgpulse
Stars000
LanguageTypeScriptTypeScriptTypeScript
Setup difficultyhardmoderatemoderate
Complexity5/53/54/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · hard time til it works · 1h+

Requires Node 22+, pnpm, and a running Docker engine to boot the local Nox test stack.

in plain english

VeilSwap is a privacy layer for token swaps built on top of Ethereum, using confidential smart contracts from a system called iExec Nox. A user deposits WETH or USDC, and from that point their trading activity becomes hidden: how much they are trading, in which direction, and at what price limit are all kept secret inside a protected hardware environment called an Intel TDX enclave. Opposite trades from different users are matched and cancelled out against each other privately, so only whatever is left over after that matching, called the residual, actually gets traded on the real public Uniswap market, and it happens as a single combined swap once per time period called an epoch. The project includes a dashboard with a chain view mode that lets anyone check the privacy claim for themselves. Switching to that mode shows exactly what an outside observer watching the blockchain can see, which turns out to be very little: an epoch number, an index, and an address, but no direction, size, or price limit for any trade. The system is designed so that no one, including the project's own operators, controls it: settling each epoch is open to anyone, the reference price comes from the public market itself, and every value that gets revealed comes with a cryptographic proof checked on chain. A helper service called a keeper can trigger settlement, but it has no special power over the system. The privacy mechanism works by keeping balances and trade details encrypted the entire time, only combining and netting them together while still encrypted, and revealing just two total numbers per epoch, the combined amount bought and sold on each side, because the leftover trade has to be a plain number to execute on Uniswap. This gives every trader a form of safety in numbers, since an observer only learns that some number of trades happened and what the total side amounts were, not who did what. The code is organized into Solidity smart contracts, a set of tests that run against a real local test version of Nox in Docker, a keeper service, and a React based frontend. It is currently deployed and demoed live on the Ethereum Sepolia test network, not on the real Ethereum mainnet.

prompts (copy fr)

prompt 1
Explain how VeilSwap keeps trade direction and size hidden while still settling on real Uniswap.
prompt 2
Walk me through what the chain view mode reveals versus what stays encrypted.
prompt 3
Show me how to deploy VeilSwap's contracts to Sepolia and run the keeper service.
prompt 4
How does epoch netting and k-anonymity batching protect individual traders here?

Frequently asked questions

what is veilswap fr?

A confidential token swap protocol that hides trade size and direction using encrypted smart contracts, settling only net leftovers on Uniswap.

What language is veilswap written in?

Mainly TypeScript. The stack also includes Solidity, TypeScript, React.

How hard is veilswap to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is veilswap for?

Mainly developer.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.