confswap / confswap-fhe-amm
PublicConfidential AMM reference implementation using FHE (fully homomorphic encryption) on Zama fhEVM. Encrypted reserves & swap inputs, plaintext baseline for gas/latency comparison. TypeScript + Hardhat + React.
ConfSwap is an educational demonstration project that shows how confidential (encrypted) trading works on blockchain. It includes two types of automated trading pools: one where all amounts are kept secret using encryption, and another where everything is public. The project provides a dashboard that compares how much faster and cheaper regular trading is compared to private trading. It's designed to help people understand the tradeoffs of privacy-preserving technology in decentralized finance, but it's explicitly marked as a research prototype, not a production-ready product.
How It Works
You've heard about blockchain projects that keep trading amounts secret, and you want to see how it actually works.
You find ConfSwap, an educational project that shows both private encrypted swaps and regular public swaps side by side.
You install the tools and run a simple command to get everything ready on your computer.
You watch as a swap happens with hidden amounts - the numbers are encrypted so nobody can see them, but the trade still executes correctly.
Private swaps where amounts stay hidden, but require more computational effort
Public swaps where everyone can see the amounts, but it's faster and cheaper
The dashboard shows you a table comparing gas costs and wait times between the two approaches across different scenarios.
You now see why private trading is more expensive computationally, and you learned about the current limitations of encrypted smart contracts.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.