ZYN

Zyn: privacy layer using ENS + EIP-5564 to break links between identity & funds.

ZYN

Created At

Open Agents

Project Description

Zyn Protocol is a high-integrity privacy redirection layer for Ethereum, designed to solve the "Identity-History Linkage" problem inherent in public ledgers. On Ethereum today, sharing an ENS name or a wallet address to receive funds creates a permanent, public link to your entire financial history. Zyn breaks this link using a sophisticated Zero-Link Architecture that combines stateless smart contracts, EIP-5564 compliant stealth addressing, and standardized ENS resolution.

  1. The Zero-Link Identity Layer The core innovation of Zyn begins at the identity level. In a traditional setup, a user owns their ENS subdomain, creating an on-chain ownership trail. In Zyn, subdomains (e.g., alice.zyn.eth) are registered to a stateless Registrar contract rather than the user's wallet. This redirection ensures that anyone looking at the ENS Registry sees the protocol contract as the owner, effectively terminating the trail for third-party observers.

  2. EIP-5564 Stealth Handshake Zyn implements the EIP-5564 standard for non-interactive stealth address generation. When a sender wants to pay a Zyn user, they resolve the recipient's Stealth Meta-Address (a public cryptographic mailbox) and locally compute a fresh, one-time Stealth Address (0x...). Funds are sent directly to this fresh address, which has no prior transaction history and no visible link to the recipient’s main identity.

  3. Stateless Execution & Announcements To maintain maximum efficiency and privacy, Zyn utilizes an Ephemeral Announcer contract. Instead of storing transaction data in expensive on-chain storage, the protocol emits a single Announcement event containing a cryptographic "clue" (the ephemeral public key). Recipient dashboards use these clues to locally derive the private keys for their funds. This stateless approach keeps gas costs identical to standard transfers while maintaining total privacy.

  4. Privacy-First Indexing Zyn leverages The Graph and a decentralized indexing layer to pick up these ephemeral clues instantly. The frontend dashboard then performs a Local Deep Scan, applying the user's private viewing key to the indexed clues entirely within their browser. This ensures that even the indexer never knows which specific payments belong to which user, as the "unlocking" math happens strictly client-side.

  5. Technical Stack & Standards Cryptography: secp256k1 elliptic curve math for stealth address derivation. Standards: EIP-5564 (Stealth Addresses), EIP-3668 (CCIP-Read), EIP-55 (Address Checksums). Architecture: Stateless Solidity contracts, Next.js frontend, and The Graph for high-performance indexing. Zyn Protocol is not just a mixer; it is a fundamental refactoring of how identity and value move across the blockchain. It provides a hardened, professional-grade interface for users who demand high-integrity privacy without sacrificing the convenience of ENS.

How it's Made

Building Zyn required a deep dive into the intersection of EIP-5564 (Stealth Addresses) and ENS (Ethereum Name Service). We wanted to create a system where privacy wasn't an "add-on" but a fundamental property of the identity itself.

  1. The "Zero-Link" Ownership Hack One of the most notable technical "hacks" in Zyn is how we handle subdomain ownership. Typically, an ENS subdomain is owned by the user's wallet. We realized this was a privacy leak. Our solution? The SubdomainRegistrar contract creates the subnodes but sets itself as the owner in the ENS Registry. It then points the resolver to a custom StealthResolver. This breaks the on-chain ownership trail completely; any observer looking at the Registry sees only our protocol contract, not the user's wallet.

  2. CCIP-Read & Off-Chain Resolution To make Zyn compatible with standard wallets while still being private, we implemented EIP-3668 (CCIP-Read). When a wallet looks up a .zyn.eth name, the StealthResolver triggers an OffchainLookup error, redirecting the request to our Vercel-hosted API. This API fetches the recipient's meta-address from the official ENS resolver, computes a fresh stealth address on-the-fly, and returns it to the wallet with a cryptographic proof. This allows users to pay Zyn names directly from MetaMask without any special plugins.

  3. Stateless Event-Based Discovery Writing data to the Ethereum state is expensive. To keep Zyn accessible, we built a Stateless Ephemeral Announcer. Instead of storing payment clues in a mapping, we emit a single event with the ephemeral key. We then use The Graph to index these events instantly. The "hack" here is that our indexer provides a fast API for the dashboard, but the actual decryption happens locally in the user's browser using their viewing key. This ensures that we provide the speed of a centralized server with the privacy of a zero-knowledge system.

  4. The "Terminal-Chic" UI & Kinetic GSAP We wanted the interface to feel as authoritative and high-density as the protocol itself. We used Next.js 16 (Turbopack) for performance and GSAP (GreenSock) for a kinetic, engineering-grade UI. We implemented custom scroll-pinning and kinetic reveals to guide users through the complex math of stealth addressing without overwhelming them.

  5. Partner Technologies & Benefits The Graph: Critical for making a stateless protocol searchable. Without it, scanning for stealth payments would take minutes; with it, it takes milliseconds. ENS: Provided the foundational trust layer. By storing our meta-addresses on the official ENS Public Resolver, we ensured Zyn names are permanent and follow global standards. Hardhat & OpenZeppelin: Used for rigorous contract testing and secure cryptographic primitives (ECDSA). Zyn Protocol is a masterclass in combining existing standards (ENS, EIP-5564, CCIP-Read) in ways they weren't originally intended to be used, resulting in a seamless, high-integrity privacy experience.

background image mobile

Join the mailing list

Get the latest news and updates