Xypher
MPC-secured privacy-preserving ZEC perps on Solana
Created on 4th December 2025
•
Xypher
MPC-secured privacy-preserving ZEC perps on Solana
The problem Xypher solves
The problem it solves
Perp DEXes today leak everything about a trader’s behavior.
On most chains, anyone can see:
Exact position sizes and entry prices
Live PnL and liquidation levels
Full trade history per wallet
This makes it trivial to copy-trade whales, reverse-engineer market-maker strategies, and even grief specific wallets. For ZEC holders it’s even worse: to trade perps they usually need to move out of the Zcash ecosystem onto a public chain, losing most of their privacy along the way.
ZEC Dark Perps is a design and prototype for a perp venue where:
Funding comes from ZEC, and lands on Solana as trading collateral.
Once funds are on Solana, margin and positions live in an Arcium MPC-backed account, not as plain numbers in an on-chain struct.
All balance updates (deposits, withdrawals, trade PnL) are computed inside Arcium and written back as encrypted blobs.
everything on the database(in my case supabase) is kept encrypted instead of storing direct values hence preserving the privacy.
From a trader’s perspective, they get a normal perps experience: open long/short positions, choose leverage, and see their live PnL and equity.
From an outside observer’s perspective, they only ever see:
Aggregated platform stats (volume, open interest, etc.)
Encrypted blobs representing margin and positions – not who traded what or at what size.
So the concrete problem we’re solving is: “How can someone trade perps and fund from ZEC without donating their entire strategy to on-chain data analysts?”
Our answer is: ZEC funding + Arcium-secured margin accounts, where only the trader has a usable view of their own book.
Challenges I ran into
The biggest blocker wasn’t Solana or Arcium or helius– those parts actually worked – it was Zcash infrastructure.
The whole point of the project is “ZEC-funded perps”, but in practice getting a reliable, scriptable Zcash setup was painful:
Most tooling assumes you run your own full node, which is heavy and slow to sync for a hackathon and probably not very healthy to run on my mac.
The things that look “simple”, like zingo-cli and other wallet CLIs, either broke, didn’t behave like the docs promised, or weren’t stable enough.
Hosted / public nodes were either missing the RPCs I needed, especially around watching for shielded deposits and mapping them to a specific user / intent.
I burned a lot of time just trying to achieve two basic things:
Generate usable ZEC deposit addresses in a way I could drive from code.
Detect an incoming test deposit and reliably trigger the “credit collateral on Solana” side.
By the time it became clear this wasn’t going to be reliable within the hackathon window, I had to compromise by stubbing out the Zcash side and focusing on the parts that are novel and working – Arcium-backed encrypted margin accounts and the perpetual logic.
So in the current demo:
The “ZEC → collateral” step is simulated (no real Zcash node calls).
Everything after that (margin accounting, positions, PnL, encrypted state via Arcium) follows the exact architecture I’d described.
This keeps the demo honest: I can point to the exact place where Zcash infra blocked us, while still showing a fully working encrypted perps pipeline instead of a half-broken cross-chain integration.
Tracks Applied (3)
Private DeFi & Trading
Arcium
Cross-Chain Privacy Solutions
Helius
Private DeFi & Trading
Zcash Community Grants
Technologies used
Cheer Project
Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.