Skip to content
C

CipherFlow

See the signal, hide the trade.

Created on 4th December 2025

•

C

CipherFlow

See the signal, hide the trade.

The problem CipherFlow solves

Bridging into privacy is broken. Users who want to move from public chains (Solana) to private chains (Zcash) currently rely on centralized exchanges (KYC risk) or centralized bridges (hack risk). There is no decentralized way to swap SOL directly for Shielded ZEC without exposing the link between the two wallets.

Our Solution CipherFlow is a next-generation Solver Node built on the NEAR Intents framework. It acts as a private liquidity gateway that utilizes Chain Abstraction to settle swaps across blockchains without a bridge.

Smart Signals (Nillion): The user receives a proprietary "Buy/Sell" signal decrypted locally from Nillion's Secret Vault.

Cross-Chain Intent (NEAR): The user signs a chain-abstracted intent: "Swap 10 SOL for Shielded ZEC."

Confidential Execution (Arcium): The destination Zcash address is encrypted via Arcium, ensuring even the intent network cannot see who is receiving the funds.

Solver Settlement (Rust): The CipherFlow Solver detects the intent, executes a Shielded Zcash Transaction using a custom Rust builder, and cryptographically proves the payment to settle the swap on Solana.

🔑 Key Innovations
Rust-Native Privacy Engine: We built a custom Zcash transaction builder from scratch (using librustzcash and secp256k1) that allows a lightweight Rust node to sign and prove shielded transactions (Sapling/Orchard) without a full node.

Chain Abstraction (NEAR Intents): Instead of custom smart contracts, we utilize NEAR Intents for settlement. This allows users to stay on Solana while our Solver handles the complexity of cross-chain movement.

Blind Intent Fulfillment (Arcium): We solve the "Memo Leak" problem. Typically, intents reveal the destination. We use Arcium’s Multi-Party Execution (MXE) to seal the destination address, so only the winning Solver can decrypt it.

Decentralized Alpha (Nillion): Trading signals are generated off-chain (Python/Pandas) and stored as secrets in Nillion. This creates a "Blind Subscription" model where users can profit from algorithmic strategies without the algorithm ever being revealed.

Challenges I ran into

Rust Dependency Hell: The Zcash ecosystem relies on older, stable versions of secp256k1 and rand. My project initially defaulted to the latest versions, causing persistent type mismatch errors where SecretKey did not equal SecretKey. I solved this by auditing the full dependency tree and pinning my Cargo.toml to match zcash_primitives exactly.

The "InvalidAddress" Gatekeeper: I initially used mock UTXOs with random scripts for testing, but the Zcash Builder rejected them. I realized the builder strictly verifies ownership, so I wrote a helper script to mathematically derive the correct P2PKH Script from my wallet's public key at runtime, satisfying the cryptographic check.

Opaque Address Parsing: The zcash_address crate hides its internal enums, making it impossible to directly extract Orchard receivers. I overcame this by implementing a custom Adapter Pattern (OrchardExtractor) that hooks into the library's conversion trait to safely extract the receiver without accessing private fields.

Bridge Complexity vs. Security: Building a custodial bridge contract on Solana felt too risky and centralized. I pivoted to an Intent-Based Solver Architecture. Instead of holding funds, my Rust node listens for "Swap Intents" and executes atomic P2P swaps using its own liquidity, creating a non-custodial and far more secure system.

Tracks Applied (4)

Private DeFi & Trading

Arcium Focuses on Confidential Computing and Encrypted Execution Environments (MXEs). Builders are tasked with creating ...Read More

Arcium

Privacy Infrastructure & Developer Tools

Developers are encouraged to build tools that leverage the Zcash shielded pool, such as light-wallet SDK integrations, Z...Read More

Electric Coin Company

Privacy-Preserving AI & Computation

Nillion Centers on Blind Computation and Decentralized Trust without traditional blockchains. Tracks typically reward "B...Read More
nillion

nillion

Cross-Chain Privacy Solutions

NEAR Protocol Prioritizes Chain Abstraction and Intents to simplify Web3 user experience. Bounties usually target projec...Read More
NEAR Protocol

NEAR Protocol

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.

Discussion

Builders also viewed

See more projects on Devfolio